|
|
|
@ -62,7 +62,7 @@ import org.springframework.core.type.filter.TypeFilter; |
|
|
|
* way to set up a shared Hibernate SessionFactory in a Spring application context; the |
|
|
|
* way to set up a shared Hibernate SessionFactory in a Spring application context; the |
|
|
|
* SessionFactory can then be passed to data access objects via dependency injection. |
|
|
|
* SessionFactory can then be passed to data access objects via dependency injection. |
|
|
|
* |
|
|
|
* |
|
|
|
* <p>Compatible with Hibernate ORM 7.1, as of Spring Framework 7.0. |
|
|
|
* <p>Compatible with Hibernate ORM 7.x, as of Spring Framework 7.0. |
|
|
|
* This Hibernate-specific {@code LocalSessionFactoryBean} can be an immediate alternative |
|
|
|
* This Hibernate-specific {@code LocalSessionFactoryBean} can be an immediate alternative |
|
|
|
* to {@link org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean} for |
|
|
|
* to {@link org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean} for |
|
|
|
* common JPA purposes: The Hibernate {@code SessionFactory} will natively expose the JPA |
|
|
|
* common JPA purposes: The Hibernate {@code SessionFactory} will natively expose the JPA |
|
|
|
@ -78,6 +78,7 @@ import org.springframework.core.type.filter.TypeFilter; |
|
|
|
* @see HibernateTransactionManager |
|
|
|
* @see HibernateTransactionManager |
|
|
|
* @see LocalSessionFactoryBuilder |
|
|
|
* @see LocalSessionFactoryBuilder |
|
|
|
* @see org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean |
|
|
|
* @see org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean |
|
|
|
|
|
|
|
* @see org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public class LocalSessionFactoryBean extends HibernateExceptionTranslator |
|
|
|
public class LocalSessionFactoryBean extends HibernateExceptionTranslator |
|
|
|
implements SmartFactoryBean<SessionFactory>, ResourceLoaderAware, BeanFactoryAware, |
|
|
|
implements SmartFactoryBean<SessionFactory>, ResourceLoaderAware, BeanFactoryAware, |
|
|
|
|