RawSushi's Tech Journal
My online tech scrapbook where I keep my notes in case I need to look them up later
Friday, June 1, 2012
Limit & Offset in Hibernate
This is done on the Query object itself:
query.setFirstResult(0)
query.setMaxResults(20);
Note that setFirstResult starts counting from 0.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment