fix formatting in PDF

This commit is contained in:
Gavin 2023-05-19 16:27:55 +02:00
parent 689414e347
commit 55d4f0f22c
1 changed files with 5 additions and 2 deletions

View File

@ -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