5

I would like to use PagingAndSortingRepository with spring-data-jdbc but it not seem to work. It's only available with JPA ?

I tried to use PagingAndSortingRepository and use the findAll(Pageable pageable).

But I actually get a "No query specified on findAll"

MarS
  • 74
  • 2
  • 9

2 Answers2

5

2020 Update

Support for PagingRepositories was introduced at version 2.0.0.M3 (2020-02-12).

Spring Data JDBC Changelog

Gabriel Kaio
  • 51
  • 1
  • 2
3

PagingAndSortingRepository is supported since version 2.0 M3

That version wasn't available when this question was asked.

Original answer

Yes, you are right, pagination isn't ready yet.

There is actually a PR that will create infrastructure for that but it won't enable the feature yet. For that you should watch https://jira.spring.io/browse/DATAJDBC-101.

Jens Schauder
  • 77,657
  • 34
  • 181
  • 348