Explicit javadoc reference to Hibernate 5.2
Issue: SPR-14393
This commit is contained in:
@@ -51,9 +51,7 @@ import org.springframework.util.Assert;
|
||||
* Hibernate SessionFactory in a Spring application context; the SessionFactory can
|
||||
* then be passed to Hibernate-based data access objects via dependency injection.
|
||||
*
|
||||
* <p>This class is similar in role to the same-named class in the {@code orm.hibernate3}
|
||||
* package. However, in practice, it is closer to {@code AnnotationSessionFactoryBean}
|
||||
* since its core purpose is to bootstrap a {@code SessionFactory} from package scanning.
|
||||
* <p>Compatible with Hibernate 5.0/5.1 as well as 5.2, as of Spring 4.3.
|
||||
*
|
||||
* @author Juergen Hoeller
|
||||
* @since 4.2
|
||||
|
||||
@@ -70,6 +70,8 @@ import org.springframework.util.ClassUtils;
|
||||
* <p>This is designed for programmatic use, e.g. in {@code @Bean} factory methods.
|
||||
* Consider using {@link LocalSessionFactoryBean} for XML bean definition files.
|
||||
*
|
||||
* <p>Compatible with Hibernate 5.0/5.1 as well as 5.2, as of Spring 4.3.
|
||||
*
|
||||
* @author Juergen Hoeller
|
||||
* @since 4.2
|
||||
* @see LocalSessionFactoryBean
|
||||
@@ -189,7 +191,7 @@ public class LocalSessionFactoryBuilder extends Configuration {
|
||||
}
|
||||
|
||||
// Hibernate 5.2: manually enforce connection release mode AFTER_STATEMENT (the JTA default)
|
||||
getProperties().remove("hibernate.connection.handling_mode", "DELAYED_ACQUISITION_AND_RELEASE_AFTER_STATEMENT");
|
||||
getProperties().put("hibernate.connection.handling_mode", "DELAYED_ACQUISITION_AND_RELEASE_AFTER_STATEMENT");
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user