Hi.
I'm using spring-data-mongodb M3. I like the idea of Pageable and this seems to work with auto-query-generation from methods that have Pageable in their signature.
Now I have some custom query methods too where I have to use the mogo template for building complex queries. I would like to pass the Pagable object to my
query methods too to read page, size, order etc. from it easily. But looking at the Query object there is no such method like setPageable or fromPageable or similar.
So I have to write something like this:
query.limit(pageable.getPageSize());
query.skip(pageable.getOffset());
...
It would be great if I simply could pass the Pageable object to the Query so constraint are read from there automatically.
Also I didn't manage to put the sort criteria from the Pageable to the Query. Since I can't read the property from the Pageable somehow.
Are there plans to add those features in future versions?


Reply With Quote
