Now setting connection autocommit to false before
authorerik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Tue, 4 May 2010 16:44:35 +0000 (16:44 +0000)
committererik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
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();