Package org.joinfaces.autoconfigure.jpa
Klasse JpaWebAutoConfiguration
java.lang.Object
org.joinfaces.autoconfigure.jpa.JpaWebAutoConfiguration
@AutoConfiguration(before=org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration.class)
@ConditionalOnWebApplication(type=SERVLET)
@ConditionalOnClass({jakarta.persistence.EntityManager.class,org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.class})
@ConditionalOnProperty(prefix="spring.jpa",
name="open-in-view",
havingValue="true",
matchIfMissing=true)
public class JpaWebAutoConfiguration
extends Object
Spring Boot will by default register a
OpenEntityManagerInViewInterceptor
to apply the "Open EntityManager in View" pattern, i.e. to allow for lazy loading in web views.
Unfortunately the Interceptor doesn't work for JSF, so this AutoConfiguration registers a
OpenEntityManagerInViewFilter
instead.
- Siehe auch:
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibung
-
Konstruktordetails
-
JpaWebAutoConfiguration
public JpaWebAutoConfiguration()
-
-
Methodendetails
-
openEntityManagerInViewFilter
@Bean @ConditionalOnMissingBean({org.springframework.orm.jpa.support.OpenEntityManagerInViewInterceptor.class,org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.class}) @ConditionalOnMissingFilterBean(org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.class) public OpenEntityManagerInViewFilter openEntityManagerInViewFilter()
-