Author: steve.ebersole(a)jboss.com
Date: 2006-08-31 09:40:22 -0400 (Thu, 31 Aug 2006)
New Revision: 10385
Modified:
branches/Branch_3_2/Hibernate3/test/org/hibernate/test/optlock/OptimisticLockTest.java
Log:
make certain we are not batching versioned data here, since that causes problems on
certain drivers
Modified:
branches/Branch_3_2/Hibernate3/test/org/hibernate/test/optlock/OptimisticLockTest.java
===================================================================
---
branches/Branch_3_2/Hibernate3/test/org/hibernate/test/optlock/OptimisticLockTest.java 2006-08-31
04:10:44 UTC (rev 10384)
+++
branches/Branch_3_2/Hibernate3/test/org/hibernate/test/optlock/OptimisticLockTest.java 2006-08-31
13:40:22 UTC (rev 10385)
@@ -7,6 +7,8 @@
import org.hibernate.Session;
import org.hibernate.StaleObjectStateException;
import org.hibernate.Transaction;
+import org.hibernate.cfg.Configuration;
+import org.hibernate.cfg.Environment;
import org.hibernate.test.TestCase;
/**
@@ -25,6 +27,11 @@
return new String[] { "optlock/Document.hbm.xml" };
}
+ protected void configure(Configuration cfg) {
+ super.configure( cfg );
+ cfg.setProperty( Environment.BATCH_VERSIONED_DATA, "false" );
+ }
+
public static Test suite() {
return new TestSuite(OptimisticLockTest.class);
}
Show replies by date