diff --git a/documentation/src/main/asciidoc/introduction/Interacting.adoc b/documentation/src/main/asciidoc/introduction/Interacting.adoc index e546c8fe29..e6e19d27eb 100644 --- a/documentation/src/main/asciidoc/introduction/Interacting.adoc +++ b/documentation/src/main/asciidoc/introduction/Interacting.adoc @@ -618,14 +618,16 @@ Either: [source,java] ---- -HibernateCriteriaBuilder cb = entityManagerFactory.unwrap(SessionFactory.class).getCriteriaBuilder(); +HibernateCriteriaBuilder cb = + entityManagerFactory.unwrap(SessionFactory.class).getCriteriaBuilder(); ---- Or simply: [source,java] ---- -HibernateCriteriaBuilder cb = (HibernateCriteriaBuilder) entityManagerFactory.getCriteriaBuilder(); +HibernateCriteriaBuilder cb = + (HibernateCriteriaBuilder) entityManagerFactory.getCriteriaBuilder(); ---- ==== @@ -651,6 +653,7 @@ query.select(book).where(where) :generator-guide: {userGuideBase}#tooling-modelgen Here, the classes `Book_` and `Author_` are classes generated by Hibernate's {generator}[JPA Metamodel Generator], which is documented in the {generator-guide}[User Guide]. +They let us refer to attributes of our entities in a typesafe way. [CAUTION] // .Injection attacks and criteria queries