Concerns handled by subpackages include:
org.hibernate.query.Query .
Translation of HQL to SQL involves the following steps:
tokenizer and
parser work
in series to parse the text of the query and produce an AST.
org.hibernate.query.hql.internal.SemanticQueryBuilder
translates the AST into an instance of the SQM (Semantic Query
Model) defined in org.hibernate.query.sqm .
org.hibernate.query.sqm.sql.internal.StandardSqmTranslator
transforms the SQM tree and produces a SQL AST, an instance of
the syntax tree defined by org.hibernate.sql.ast.tree .
org.hibernate.sql.ast.SqlAstTranslator produces an
executable SQL statement.
org.hibernate.query.hql.HqlTranslator , org.hibernate.query.hql.spi.SqmQueryImplementor , org.hibernate.query.sqm.spi.NamedSqmQueryMemento
| Modifier and Type | Interface and Description |
|---|---|
| public interface | |
| public interface | HqlTranslator
Main entry point into building semantic queries. |
| public interface | LiteralConsumer
Pluggable contract for consuming literals encountered in an HQL query. |
| Modifier and Type | Class and Description |
|---|---|
| public class | HqlInterpretationException
Base of exception hierarchy for exceptions stemming from producing SQM AST trees |