Now setting connection autocommit to false before
authorErik Brakkee <erik@brakkee.org>
Tue, 4 May 2010 16:44:35 +0000 (16:44 +0000)
committerErik Brakkee <erik@brakkee.org>
Tue, 4 May 2010 16:44:35 +0000 (16:44 +0000)
executing jdbcunitofwork.

test/enterprise/src/main/java/org/wamblee/support/persistence/DatabaseUtils.java

index 311d2da3189afcfcf09141b3b52996cc1895140d..d2abd90aeccd66eb12331370ed11602e202b9e27 100644 (file)
@@ -120,6 +120,7 @@ public class DatabaseUtils {
     public <T> T executeInTransaction(JdbcUnitOfWork<T> aCallback)
         throws Exception {
         Connection connection = dataSource.getConnection();
+        connection.setAutoCommit(false);
         try {
             T value = aCallback.execute(connection);
             connection.commit();