mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
HibernateJpaVendorAdapter properly checks connectionReleaseOnClose
Issue: SPR-16162
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user