I saw spring.jpa.open-in-view=true
property in Spring Boot documentation for JPA configuration.
true
default value for this property if it's not provided at all?;SessionFactory
instead of EntityManagerFactory
? If yes, how can I tell it to allow me to use EntityManagerFactory
instead?Thanks!
This property will register an OpenEntityManagerInViewInterceptor
, which registers an EntityManager
to the current thread, so you will have the same EntityManager
until the web request is finished. It has nothing to do with a Hibernate SessionFactory
etc.