Criteria interface provides the methods for performing pagination operations.
Methods of Criteria interface used for pagination query:
1. setFirstResult(int firstResult): Set the first row of your result… Read More
Restrictions class provides the methods to restrict the search result based on the restriction provided.
Commonly used Restriction class methods:
1. Restrictions.eq: Make a restriction that the… Read More
HCQL stands for Hibernate Criteria Query Language. HCQL is mainly used in search operations and works on filtration rules and logical conditions.
Syntax: Criteria cr = session.createCriteria(persistantClassName.class);… Read More