fix formatting in PDF
This commit is contained in:
parent
3c88dfd509
commit
e6ffd51c28
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue