Hibernate Criteria Query Language (HCQL)
HCQL stands for Hibernate Criteria Query Language. As we discussed HQL provides a way of manipulating data using objects instead of database tables. Hibernate also provides more object oriented alternative ways of HQL. Hibernate Criteria API provides one of these alternatives. HCQL is mainly used in search operations and works on filtration rules and logical conditions.
The Criteria interface, Restrictions class and Order class provides the methods and functionality to perform HCQL operations. The Criteria interface object can be created by createCriteria() method of Session interface.
Syntax: Criteria cr = session.createCriteria(persistantClassName.class);
List of Hibernate Criteria Query Language:
Next Topic: Hibernate criteria basic query example.
Previous Topic: Hibernate Query Language (HQL) with example.