diff --git a/documentation/src/main/asciidoc/querylanguage/Concepts.adoc b/documentation/src/main/asciidoc/querylanguage/Concepts.adoc index 6ec4663f54..3204694e03 100644 --- a/documentation/src/main/asciidoc/querylanguage/Concepts.adoc +++ b/documentation/src/main/asciidoc/querylanguage/Concepts.adoc @@ -165,6 +165,15 @@ Constructing a query by concatenating HQL fragments with user input is extremely Some of the syntax for literal values also departs from the standard syntax in ANSI SQL, especially in the area of date/time literals, but we'll discuss all that later, in <>. +[[syntax]] +=== Syntax + +We'll describe the syntax of the language as we go along, sometimes displaying fragments of the grammar in an ANTLR-like BNF form. +(Occasionally we'll simplify these snippets for readability, so please don't take them as canonical.) + +The full canonical grammar for HQL can be found in link:https://github.com/hibernate/hibernate-orm/blob/main/hibernate-core/src/main/antlr/org/hibernate/grammars/hql/HqlParser.g4[the github project]. + +The grammar for JPQL may be found in chapter 4 of the JPA specification. [[type-system]] === Type system diff --git a/hibernate-core/src/main/java/org/hibernate/Hibernate.java b/hibernate-core/src/main/java/org/hibernate/Hibernate.java index 94d2492bc1..24dddd22a7 100644 --- a/hibernate-core/src/main/java/org/hibernate/Hibernate.java +++ b/hibernate-core/src/main/java/org/hibernate/Hibernate.java @@ -54,7 +54,7 @@ import static org.hibernate.proxy.HibernateProxy.extractLazyInitializer; * bytecode tricks. The tricks used depend on whether build-time bytecode enhancement * is enabled. *

- * When bytecode enhancement is not used, an unfetched lazy association* is + * When bytecode enhancement is not used, an unfetched lazy association is * represented by a proxy object which holds the identifier (foreign key) of * the associated entity instance. *