p.s. in hibernate its done as:--Query q = session.createQuery("...");q.setFirstResult(start); q.setMaxResults(length);
On Saturday, December 13, 2014 11:18:54 PM UTC-6, Gianna Giavelli wrote:
One of the main things I do is something like"get all books"
But when there are 20,000 books, I usually pass in a page size and a page number.
"get all books from 201 to 220"
I don't see any calls to support paging in ActiveJDBC, but I know there are some issues with jdbc drivers and paging support but even if we have to manually walk the result set it would be good if there were conventions for how to send paging parameters along with REST requests. usually you send a page number, and a page size.
Here is how spring does it:
@Override protected void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) { config.setPageParamName("p") .setLimitParamName("l") .setSortParamName("q"); }The URL to use these parameters would then be changed to:
http://localhost:8080/people/?p=2&l=50
You received this message because you are subscribed to the Google Groups "ActiveJDBC Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to activejdbc-gro...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.