Package org.hibernate.query.criteria

The JPA-standard criteria query API defines all the operations needed express any query written in standard JPQL. This package extends the JPA-defined API, allowing any query written in HQL to be expressed via the criteria API.

The gateway to this functionality is HibernateCriteriaBuilder, which extends CriteriaBuilder.

Types defined in this package extend the equivalent types in jakarta.persistence.criteria with additional operations. For example, JpaCriteriaQuery adds the methods:

The very useful operation HibernateCriteriaBuilder.createQuery(java.lang.String, java.lang.Class) transforms a given HQL query string to an equivalent criteria query.

The class CriteriaDefinition is a helpful utility that makes it easier to construct criteria queries.

See Also:
HibernateCriteriaBuilder, JpaCriteriaQuery, JpaCriteriaUpdate, JpaCriteriaDelete, JpaCriteriaInsertValues, JpaCriteriaInsertSelect, JpaCteCriteria, JpaSubQuery, JpaExpression, HibernateCriteriaBuilder.createQuery(java.lang.String, java.lang.Class), CriteriaDefinition