Package org.hibernate.query.criteria
@Incubating
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:
JpaSelectCriteria.from(Subquery), which allows the use of a subquery in thefromclause of the query, andJpaCteContainer.with(AbstractQuery), which allows the creation ofcommon table expressions.
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.
-
ClassDescriptionA utility class that makes it easier to build criteria queries.A JPA
CriteriaBuilderis a source of objects which may be composed to express a criteria query.JpaCoalesce<T>JpaCollectionJoin<O,T> Specialization ofJpaJoinforCollectiontyped attribute joinsA conflict clause for insert statements.The update action that should happen on a unique constraint violation for an insert statement.The commonalities between insert-select and insert-values.A representation of SqmInsertSelectStatement at theorg.hibernate.query.criterialevel, even though JPA does not define support for insert-select criteria.A representation of SqmInsertValuesStatement at theorg.hibernate.query.criterialevel, even though JPA does not define support for insert-values criteria.Base contract for nodes making up the criteria treeExtension of the JPACriteriaQueryJpaCrossJoin<T>Common contract for criteria parts that can hold CTEs (common table expressions).A CTE (common table expression) criteria.Describes the attribute of aJpaCteCriteriaType.A CTE (common table expression) criteria type.API extension to the JPAExpressioncontractJpaFetch<O,T> JpaFetchParent<O,T> JpaFrom<O,T> API extension to the JPAFromcontractJpaFunction<T>Contract for expressions which model a SQL function call.JpaJoin<O,T> JpaJoinedFrom<O,T> Exists within the hierarchy mainly to support "entity joins".JpaListJoin<O,T> JpaMapJoin<O,K, V> JpaPath<T>API extension to the JPAPathcontractJpaPluralJoin<O,C, E> Common contract for the forms of criteria that are "queryable" - can be converted into aQuery.A query group i.e. query parts connected with a set operator.JpaQueryPart<T>Models a query part i.e. the commonalities between a query group and a query specification.Models aSELECTquery.JpaRoot<T>Represents the search order for a recursive CTE (common table expression).Commonality between a JPAJpaCriteriaQueryandJpaSubQuery, mainly in the form of delegation toJpaQueryStructureJpaSelection<T>API extension to the JPASelectioncontractJpaSetJoin<O,T> JpaSimpleCase<C,R> JpaSubQuery<T>API extension to the JPATupleElementcontractA tuple of values.Common contract for window parts used in window and aggregate functions.Common contract for aJpaWindowframe specification.This enum defines how values passed to JPA Criteria API are handled.