1. pagination and DAO forum.hibernate.orgI know I can use setMaxResults and setFirstResult to handle pagination of a data set but I was wondering how people actually do it using DAO. I was thinking of creating a Page class to deal with this information in action classes and set it in my DAO, where it might be an attribute, before invoking methods like getUsers(). These methods, ... |
2. pagination , dao and security forum.hibernate.org |
3. Pagination & DAOs forum.hibernate.orgI'm not sure I understand your question and your different approaches right. I'm using separate methods for getting the count of a query and the result of a query. Then for pagination the client code may store the count or not, for example to have an upper limit for the max index but that's quite unimportant for the server part. The ... |