[hibernate-commits] Hibernate SVN: r18385 - entitymanager/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/ejb/test/transaction.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Mon Jan 4 05:28:09 EST 2010


Author: stliu
Date: 2010-01-04 05:28:08 -0500 (Mon, 04 Jan 2010)
New Revision: 18385

Modified:
   entitymanager/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/ejb/test/transaction/FlushAndTransactionTest.java
Log:
JBPAPP-3315 default batch_versioned_data =true cause two test case fails on oracle

Modified: entitymanager/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/ejb/test/transaction/FlushAndTransactionTest.java
===================================================================
--- entitymanager/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/ejb/test/transaction/FlushAndTransactionTest.java	2010-01-04 10:16:38 UTC (rev 18384)
+++ entitymanager/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/ejb/test/transaction/FlushAndTransactionTest.java	2010-01-04 10:28:08 UTC (rev 18385)
@@ -2,6 +2,8 @@
 package org.hibernate.ejb.test.transaction;
 
 import java.util.List;
+import java.util.Map;
+
 import javax.persistence.EntityManager;
 import javax.persistence.LockModeType;
 import javax.persistence.RollbackException;
@@ -9,6 +11,7 @@
 import javax.persistence.PersistenceException;
 import javax.persistence.OptimisticLockException;
 
+import org.hibernate.cfg.Environment;
 import org.hibernate.ejb.HibernateEntityManagerFactory;
 import org.hibernate.ejb.test.TestCase;
 import org.hibernate.stat.Statistics;
@@ -73,6 +76,13 @@
 //		em.close();
 //	}
 
+	@Override
+	public Map getConfig() {
+		Map map=super.getConfig();
+		map.put( Environment.BATCH_VERSIONED_DATA , false );
+		return map;
+	}
+
 	public void testTransactionalOperationsWhenExtended() throws Exception {
 		Book book = new Book();
 		book.name = "Le petit prince";



More information about the hibernate-commits mailing list