From 57c2bbd56d750780cd04eb8c2aef4f1cdb9d21d7 Mon Sep 17 00:00:00 2001 From: erik Date: Tue, 4 May 2010 16:44:35 +0000 Subject: [PATCH] Now setting connection autocommit to false before executing jdbcunitofwork. --- .../main/java/org/wamblee/support/persistence/DatabaseUtils.java | 1 + 1 file changed, 1 insertion(+) diff --git a/test/enterprise/src/main/java/org/wamblee/support/persistence/DatabaseUtils.java b/test/enterprise/src/main/java/org/wamblee/support/persistence/DatabaseUtils.java index 311d2da3..d2abd90a 100644 --- a/test/enterprise/src/main/java/org/wamblee/support/persistence/DatabaseUtils.java +++ b/test/enterprise/src/main/java/org/wamblee/support/persistence/DatabaseUtils.java @@ -120,6 +120,7 @@ public class DatabaseUtils { public T executeInTransaction(JdbcUnitOfWork aCallback) throws Exception { Connection connection = dataSource.getConnection(); + connection.setAutoCommit(false); try { T value = aCallback.execute(connection); connection.commit(); -- 2.31.1