From 5799aae2e59df4e52475fe2d55b86fb388c7e1dc Mon Sep 17 00:00:00 2001 From: Vlad Mihalcea Date: Mon, 21 Mar 2016 09:30:56 +0200 Subject: [PATCH] HHH-7412 - JDBCTransactionFactory.getDefaultReleaseMode() returns incorrect ConnectionReleaseMode Switch back to AFTER_TRANSACTION for JDBC transactions. --- .../JdbcResourceLocalTransactionCoordinatorBuilderImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/resource/transaction/backend/jdbc/internal/JdbcResourceLocalTransactionCoordinatorBuilderImpl.java b/hibernate-core/src/main/java/org/hibernate/resource/transaction/backend/jdbc/internal/JdbcResourceLocalTransactionCoordinatorBuilderImpl.java index c057f6e90f..69fa2d4c4d 100644 --- a/hibernate-core/src/main/java/org/hibernate/resource/transaction/backend/jdbc/internal/JdbcResourceLocalTransactionCoordinatorBuilderImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/resource/transaction/backend/jdbc/internal/JdbcResourceLocalTransactionCoordinatorBuilderImpl.java @@ -45,7 +45,7 @@ public class JdbcResourceLocalTransactionCoordinatorBuilderImpl implements Trans @Override public ConnectionReleaseMode getDefaultConnectionReleaseMode() { - return ConnectionReleaseMode.ON_CLOSE; + return ConnectionReleaseMode.AFTER_TRANSACTION; } @Override