Hi,
I want to implement pagination in JBoss using entity beans. For eg. if there are 10,000 records in a table then i want to fire a query which returns only a specified number of records (say 30) from the database.
Regards,
Hitesh Sharma
Hi!
I'd use the methods setFirstResult and setMaxResults of the Query interface to implement the paginations. In the specification document related with Java Persistence API i'm reading is in the section 3.5.1.
bye