Closed
Description
Juergen Hoeller opened SPR-17002 and commented
As outlined in #21494 and #21454, it is desirable for the Hibernate LocalSessionFactoryBean
to be usable for JPA EntityManagerFactory
setup as well: that is, in a first-class fashion with out-of-the-box integration with other JPA facilities such as @PersistenceContext
injection, making it a replacement for LocalContainerEntityManagerFactoryBean
for Hibernate JPA setup purposes. The same goes for HibernateTransactionManager
which should work fine as a replacement for JpaTransactionManager
in such a scenario, just with stronger Hibernate-specific behavior.
Issue Links:
- Support for Hibernate ORM 5.3 [SPR-16303] #20850 Support for Hibernate ORM 5.3
- Support Hibernate 5.3's ManagedBeanRegistry for dependency injection [SPR-16305] #20852 Support Hibernate 5.3's ManagedBeanRegistry for dependency injection
- Session from SessionFactory.getCurrentSession not synchronized with current JPA transaction on Hibernate 5.2 [SPR-16915] #21454 Session from SessionFactory.getCurrentSession not synchronized with current JPA transaction on Hibernate 5.2
- Hibernate5 LocalSessionFactoryBean does not translate javax.persistence exceptions [SPR-14455] #19024 Hibernate5 LocalSessionFactoryBean does not translate javax.persistence exceptions
- Propagate read-only status to Hibernate Session through setDefaultReadOnly [SPR-16956] #21494 Propagate read-only status to Hibernate Session through setDefaultReadOnly
- Mention asynchronous JPA bootstrapping in the reference documentation [SPR-17189] #21724 Mention asynchronous JPA bootstrapping in the reference documentation
- HibernateTransactionManager should lazily acquire JDBC Connection (like HibernateJpaDialect) [SPR-17216] #21749 HibernateTransactionManager should lazily acquire JDBC Connection (like HibernateJpaDialect)
- HibernateJpaDialect cannot translate JDBCException to custom DataAccessException [SPR-17015] #21553 HibernateJpaDialect cannot translate JDBCException to custom DataAccessException