Package org.hibernate.query

Everything related to HQL/JPQL, native SQL, and criteria queries.

The important interfaces SelectionQuery, MutationQuery, Query, and NativeQuery provide an API for executing queries. Instances of these interfaces may be obtained from a QueryProducer, that is, from any Session or StatelessSession.

The classes Order, Page, KeyedPage, and KeyedResultList define an API for dynamic ordering and key-based pagination. These classes are especially useful as parameters of generated @Find and @HQL methods.

Hibernate's extensions to the JPA criteria query API are defined in the subpackage org.hibernate.query.criteria, with HibernateCriteriaBuilder as the entry point.

Other subpackages contain SPIs and internal implementation details, including the HQL parser and translator.