This filter makes JPA EntityManagers available via the current thread, which will be autodetected by transaction managers. It is suitable for service layer transactions via {@link org.springframework.orm.jpa.JpaTransactionManager}or {@link org.springframework.transaction.jta.JtaTransactionManager} as wellas for non-transactional read-only execution.
Looks up the EntityManagerFactory in Spring's root web application context. Supports an "entityManagerFactoryBeanName" filter init-param in web.xml
; the default bean name is "entityManagerFactory". As an alternative, the "persistenceUnitName" init-param allows for retrieval by logical unit name (as specified in persistence.xml
).
@author Juergen Hoeller
@since 2.0
@see OpenEntityManagerInViewInterceptor
@see org.springframework.orm.jpa.JpaInterceptor
@see org.springframework.orm.jpa.JpaTransactionManager
@see org.springframework.orm.jpa.JpaTemplate#execute
@see org.springframework.orm.jpa.SharedEntityManagerCreator
@see org.springframework.transaction.support.TransactionSynchronizationManager
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|