Home  >  Forum  >  Spring
Post New Query

how to develop pagination using spring and hibernate



Asked on June 18, 2014
pagination using spring and hibernate source code


Replied on June 18, 2014
You can use Criteria for pagination

Criteria criteria = hibernateTemplate.session.createCriteria(Record.class);
criteria.setFirstResult(0);
criteria.setMaxResults(10);

List<Record> records = criteria.list();


Write Answer




©2019 concretepage.com | Privacy Policy | Contact Us