Hibernate version: 2.1.6
Hi All,
I was reviewing the post from Gavin King about pagination, in
http://blog.hibernate.org/cgi-bin/blosx ... ation.html.
The implementation is really nice, but I wonder if it's possible not only to know if there are pages before and after the requested page, but also to know the number of total pages (or total results of the query being paginated).
Of course that I can make another query with (select count(*)...), but the question is, can I make this with only one query?? (i.e. using the query object enclosed in the page implementation from Gavin?