CodesJava

Easy learning with example program codes

Hibernate Criteria Query Language (HCQL)


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.

Related Topics:

How to build java project using ant in eclipse?
JAXB marshalling – convert java object to xml example.
How to create pdf file in java using iText jar?
Generics class example.
OGNL in struts 2.
Hibernate One-to-One Mapping using xml.
Send inline image in email using JavaMail API.
Quartz 2 JobListener example.

 

Sign Up/ Sign In
Ask a Question


Copyright © 2018 CodesJava DMCA.com Protection Status SiteMap Reference: Java Wiki