Skip to content

Commit a7fce6b

Browse files
vpavicsnicoll
authored andcommitted
Document use of OpenEntityManagerInViewInterceptor
Closes gh-7993
1 parent f92719c commit a7fce6b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3060,6 +3060,16 @@ Hibernate autoconfig is active because the `ddl-auto` settings are more fine-gra
30603060

30613061

30623062

3063+
[[boot-features-jpa-in-web-environment]]
3064+
==== Open EntityManager in View
3065+
If you are running a web application, Spring Boot will by default register
3066+
{spring-javadoc}/orm/jpa/support/OpenEntityManagerInViewInterceptor.html[`OpenEntityManagerInViewInterceptor`]
3067+
to apply the "Open EntityManager in View" pattern, i.e. to allow for lazy loading in web
3068+
views. If you don't want this behavior you should set `spring.jpa.open-in-view` to
3069+
`false` in your `application.properties`.
3070+
3071+
3072+
30633073
[[boot-features-sql-h2-console]]
30643074
=== Using H2's web console
30653075
The http://www.h2database.com[H2 database] provides a

0 commit comments

Comments
 (0)