In pagination I am having 1000 records
but by default it should load only 100 records
first and remaining should not load until I fetch those records from database.
Please help me.
Thanks in advance for your help.
In pagination I am having 1000 records
but by default it should load only 100 records
first and remaining should not load until I fetch those records from database.
Please help me.
Thanks in advance for your help.
Its very simple. In each pagination setFirstResult will be changed. Using:
query.setFirstResult(0);
query.setMaxResults(100);
Duplicate of hibernate pagination mechanism