You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default the javadoc:hibernate.HibernateModule[] module detects all the persistent entities under javadoc:Jooby[getBasePackage, text = "base/root package"]. The module provides two
105
+
By default the javadoc:hibernate.HibernateModule[artifact="jooby-hibernate"] module detects all the persistent entities under javadoc:Jooby[getBasePackage, text = "base/root package"]. The module provides two
106
106
options for more explicit control:
107
107
108
108
- List persistent classes at creation time:
@@ -119,7 +119,7 @@ options for more explicit control:
119
119
120
120
=== Transactional Request
121
121
122
-
The javadoc:hibernate.TransactionalRequest[] filter takes care of a lifecycle of an `EntityManager`/`StatelessSession` per HTTP request.
122
+
The javadoc:hibernate.TransactionalRequest[artifact="jooby-hibernate"] filter takes care of a lifecycle of an `EntityManager`/`StatelessSession` per HTTP request.
123
123
The filter creates, bind, begin/commit/rollback transaction and finally close it, so route handler
124
124
doesn't have to deal with that boring lines of code.
125
125
@@ -232,12 +232,12 @@ the same `EntityManager`/`StatelessSession`. It is a simple way of managed simpl
232
232
233
233
[NOTE]
234
234
====
235
-
The javadoc:hibernate.TransactionalRequest[] doesn't extend session to the rendering phase (json, html, etc.).
235
+
The javadoc:hibernate.TransactionalRequest[artifact="jooby-hibernate"] doesn't extend session to the rendering phase (json, html, etc.).
236
236
The route handler needs to make sure all the information required by the rendering phase is available.
237
237
Otherwise, you are going to see `LazyInitializationException`.
238
238
====
239
239
240
-
There is a javadoc:hibernate.SessionRequest[] filter that works identically but leaves transaction
240
+
There is a javadoc:hibernate.SessionRequest[artifact="jooby-hibernate"] filter that works identically but leaves transaction
241
241
management to you, so no transaction is started/committed or rollback during a HTTP request.
242
242
243
243
==== @Transactional
@@ -460,7 +460,7 @@ Neither can it be used together with `SessionRequest` or `TransactionalRequest`:
460
460
461
461
Schema creation is controlled by the `hibernate.hbm2ddl.auto` property. The Hibernate module configure this property using the following rules:
462
462
463
-
- When the javadoc:flyway.FlywayModule[] module is present, the value of `hibernate.hbm2ddl.auto` is set to `none`
463
+
- When the javadoc:flyway.FlywayModule[artifact="jooby-flyway"] module is present, the value of `hibernate.hbm2ddl.auto` is set to `none`
464
464
- When `application.env` property is set to `dev` or `test`, the value of `hibernate.hbm2ddl.auto` is set to `update`
465
465
- Otherwise is set to `none`
466
466
@@ -474,7 +474,7 @@ Advanced Hibernate configuration is supported from application configuration pro
474
474
hibernate.hbm2ddl.auto = create
475
475
----
476
476
477
-
Or by providing a custom javadoc:HibernateConfigurer[] instance. The javadoc:HibernateConfigurer[]
477
+
Or by providing a custom javadoc:hibernate.HibernateConfigurer[artifact="jooby-hibernate"] instance. The javadoc:hibernate.HibernateConfigurer[artifact="jooby-hibernate"]
478
478
let you hook and customize Hibernate bootstrap process:
479
479
480
480
.HibernateConfigurer:
@@ -534,7 +534,7 @@ public class MyConfigurer extends HibernateConfigurer {
534
534
}
535
535
----
536
536
537
-
Something similar is possible for custom Session using a javadoc:hibernate.SessionProvider[]:
537
+
Something similar is possible for custom Session using a javadoc:hibernate.SessionProvider[artifact="jooby-hibernate"]:
0 commit comments