[hibernate-commits] Hibernate SVN: r18363 - in annotations/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/test/annotations: entity and 1 other directory.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Wed Dec 30 03:49:46 EST 2009


Author: stliu
Date: 2009-12-30 03:49:46 -0500 (Wed, 30 Dec 2009)
New Revision: 18363

Modified:
   annotations/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/test/annotations/EntityTest.java
   annotations/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/test/annotations/entity/BasicHibernateAnnotationsTest.java
Log:
JBPAPP-3315 default batch_versioned_data =true cause two test case fails on oracle

Modified: annotations/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/test/annotations/EntityTest.java
===================================================================
--- annotations/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/test/annotations/EntityTest.java	2009-12-29 23:43:48 UTC (rev 18362)
+++ annotations/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/test/annotations/EntityTest.java	2009-12-30 08:49:46 UTC (rev 18363)
@@ -12,6 +12,8 @@
 import org.hibernate.Session;
 import org.hibernate.StaleStateException;
 import org.hibernate.Transaction;
+import org.hibernate.cfg.Configuration;
+import org.hibernate.cfg.Environment;
 
 /**
  * @author Emmanuel Bernard
@@ -21,7 +23,12 @@
 	public EntityTest(String x) {
 		super( x );
 	}
-
+	
+	@Override
+	protected void configure( Configuration cfg ) {
+		cfg.setProperty( Environment.BATCH_VERSIONED_DATA , "false" );
+	}
+	
 	public void testLoad() throws Exception {
 		//put an object in DB
 		assertEquals( "Flight", getCfg().getClassMapping( Flight.class.getName() ).getTable().getName() );

Modified: annotations/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/test/annotations/entity/BasicHibernateAnnotationsTest.java
===================================================================
--- annotations/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/test/annotations/entity/BasicHibernateAnnotationsTest.java	2009-12-29 23:43:48 UTC (rev 18362)
+++ annotations/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/test/annotations/entity/BasicHibernateAnnotationsTest.java	2009-12-30 08:49:46 UTC (rev 18363)
@@ -10,6 +10,8 @@
 import org.hibernate.Query;
 import org.hibernate.Session;
 import org.hibernate.Transaction;
+import org.hibernate.cfg.Configuration;
+import org.hibernate.cfg.Environment;
 import org.hibernate.test.annotations.TestCase;
 
 /**
@@ -17,6 +19,11 @@
  */
 public class BasicHibernateAnnotationsTest extends TestCase {
 
+	@Override
+	protected void configure( Configuration cfg ) {
+		cfg.setProperty( Environment.BATCH_VERSIONED_DATA , "false" );
+	}
+
 	public void testEntity() throws Exception {
 		if( !getDialect().supportsExpectedLobUsagePattern() ){
 			return;



More information about the hibernate-commits mailing list