Author: steve.ebersole(a)jboss.com
Date: 2006-08-31 09:46:39 -0400 (Thu, 31 Aug 2006)
New Revision: 10386
Modified:
trunk/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: trunk/Hibernate3/test/org/hibernate/test/optlock/OptimisticLockTest.java
===================================================================
--- trunk/Hibernate3/test/org/hibernate/test/optlock/OptimisticLockTest.java 2006-08-31
13:40:22 UTC (rev 10385)
+++ trunk/Hibernate3/test/org/hibernate/test/optlock/OptimisticLockTest.java 2006-08-31
13:46:39 UTC (rev 10386)
@@ -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