I am trying to do paging and sorting using spring-data-couchbase
but it seems org.springframework.data.couchbase.repository
has only CouchbaseRepository
which is extending CrudRepository<T,ID>
.
There is no interface extending from PagingAndSortingRepository<T,ID>
.
I did implement an unconventional solution to the problem setting skip and limit. But want to get total number of page count, which is not available with this solution.
It seems Page<T>
does have .getTotalPages()
there is currently no paging support with Spring Data Couchbase, you need to use the lower level API, which is basically the first version of Couchbase's Java SDK.