Pagination in Hibernate !
Pagination in Hibernate and EJB3 | |
Pagination, I want to display "next" and "previous" buttons to the user, but disable them if there are no more, or no previous query results. But I don't want to retrieve all the query results in each request, or execute a separate query to count them. So, here's the correct approach: You can return this object to your JSP, and use it in Struts, WebWork or JSTL tags. Getting a page in your persistence logic is as simple as: The Page class works in both Hibernate and EJB 3.0. Related links : Check-out the discussion about ScrollableResults over paging here. | |

0 Comments:
Post a Comment
<< Home