Skip to content

Commit

Permalink
Document use of OpenEntityManagerInViewInterceptor
Browse files Browse the repository at this point in the history
  • Loading branch information
vpavic authored and snicoll committed Jan 16, 2017
1 parent f92719c commit a7fce6b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3060,6 +3060,16 @@ Hibernate autoconfig is active because the `ddl-auto` settings are more fine-gra



[[boot-features-jpa-in-web-environment]]
==== Open EntityManager in View
If you are running a web application, Spring Boot will by default register
{spring-javadoc}/orm/jpa/support/OpenEntityManagerInViewInterceptor.html[`OpenEntityManagerInViewInterceptor`]
to apply the "Open EntityManager in View" pattern, i.e. to allow for lazy loading in web
views. If you don't want this behavior you should set `spring.jpa.open-in-view` to
`false` in your `application.properties`.



[[boot-features-sql-h2-console]]
=== Using H2's web console
The http://www.h2database.com[H2 database] provides a
Expand Down

0 comments on commit a7fce6b

Please sign in to comment.