fix formatting in PDF
This commit is contained in:
parent
689414e347
commit
55d4f0f22c
|
@ -618,14 +618,16 @@ Either:
|
||||||
|
|
||||||
[source,java]
|
[source,java]
|
||||||
----
|
----
|
||||||
HibernateCriteriaBuilder cb = entityManagerFactory.unwrap(SessionFactory.class).getCriteriaBuilder();
|
HibernateCriteriaBuilder cb =
|
||||||
|
entityManagerFactory.unwrap(SessionFactory.class).getCriteriaBuilder();
|
||||||
----
|
----
|
||||||
|
|
||||||
Or simply:
|
Or simply:
|
||||||
|
|
||||||
[source,java]
|
[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
|
: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].
|
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]
|
[CAUTION]
|
||||||
// .Injection attacks and criteria queries
|
// .Injection attacks and criteria queries
|
||||||
|
|
Loading…
Reference in New Issue