HibernateJpaVendorAdapter properly checks connectionReleaseOnClose

Issue: SPR-16162
This commit is contained in:
Juergen Hoeller
2017-11-14 17:17:24 +01:00
parent ffbaa26b4f
commit a9e2040831

View File

@@ -172,7 +172,7 @@ public class HibernateJpaVendorAdapter extends AbstractJpaVendorAdapter {
jpaProperties.put(Environment.SHOW_SQL, "true");
}
if (this.jpaDialect.prepareConnection) {
if (connectionReleaseOnClose) {
// Hibernate 5.1/5.2: manually enforce connection release mode ON_CLOSE (the former default)
try {
// Try Hibernate 5.2