From: erik Date: Tue, 4 May 2010 16:44:35 +0000 (+0000) Subject: Now setting connection autocommit to false before X-Git-Tag: wamblee-utils-0.2.3~19 X-Git-Url: http://wamblee.org/gitweb/?a=commitdiff_plain;h=57c2bbd56d750780cd04eb8c2aef4f1cdb9d21d7;p=utils Now setting connection autocommit to false before executing jdbcunitofwork. --- 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();