Package org.hibernate.query.hql
package org.hibernate.query.hql
Package defining support for HQL, including JPQL as a subset of HQL.
Concerns handled by subpackages include:
- query language transformation via ANTLR, and
- query execution via an instance of
Query.
Translation of HQL to SQL involves the following steps:
- First, the ANTLR-generated
tokenizerandparserwork in series to parse the text of the query and produce an AST. - Next,
SemanticQueryBuildertranslates the AST into an instance of the SQM (Semantic Query Model) defined inorg.hibernate.query.sqm. - Next,
StandardSqmTranslatortransforms the SQM tree and produces a SQL AST, an instance of the syntax tree defined byorg.hibernate.sql.ast.tree. - Finally, a SQL dialect-specific implementation of
SqlAstTranslatorproduces an executable SQL statement.
-
ClassDescriptionBase of exception hierarchy for exceptions stemming from producing SQM AST treesMain entry point into building semantic queries.