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

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Wed Sep 12 13:05:47 EDT 2012


Author: brmeyer
Date: 2012-09-12 13:05:47 -0400 (Wed, 12 Sep 2012)
New Revision: 21069

Modified:
   annotations/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/test/annotations/manytoone/ManyToOneTest.java
   annotations/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/test/annotations/onetomany/OneToManyTest.java
Log:
JBPAPP-9490 EAP5 JDK7: Hibernate Annotations tests failing on DB2 due to unclosed session
	

Modified: annotations/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/test/annotations/manytoone/ManyToOneTest.java
===================================================================
--- annotations/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/test/annotations/manytoone/ManyToOneTest.java	2012-09-07 15:34:29 UTC (rev 21068)
+++ annotations/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/test/annotations/manytoone/ManyToOneTest.java	2012-09-12 17:05:47 UTC (rev 21069)
@@ -9,6 +9,7 @@
 import org.hibernate.Query;
 import org.hibernate.Session;
 import org.hibernate.Transaction;
+import org.hibernate.dialect.DB2Dialect;
 import org.hibernate.dialect.SybaseASE15Dialect;
 import org.hibernate.junit.SkipForDialect;
 import org.hibernate.test.annotations.Company;
@@ -190,6 +191,9 @@
 		s.close();
 	}
 
+	// JBPAPP-9490 -- DB2 cannot handle the boolean query.  Hibernate 3 relies
+	// on developers to know the correct db-specific implementation of bool.
+	@SkipForDialect(DB2Dialect.class)
 	public void testCompositeFK() throws Exception {
 		Session s;
 		Transaction tx;

Modified: annotations/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/test/annotations/onetomany/OneToManyTest.java
===================================================================
--- annotations/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/test/annotations/onetomany/OneToManyTest.java	2012-09-07 15:34:29 UTC (rev 21068)
+++ annotations/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/test/annotations/onetomany/OneToManyTest.java	2012-09-12 17:05:47 UTC (rev 21069)
@@ -12,8 +12,10 @@
 import org.hibernate.HibernateException;
 import org.hibernate.Session;
 import org.hibernate.Transaction;
+import org.hibernate.dialect.DB2Dialect;
 import org.hibernate.dialect.HSQLDialect;
 import org.hibernate.junit.RequiresDialect;
+import org.hibernate.junit.SkipForDialect;
 import org.hibernate.test.annotations.Customer;
 import org.hibernate.test.annotations.Discount;
 import org.hibernate.test.annotations.Passport;
@@ -347,6 +349,9 @@
 		s.close();
 	}
 
+	// JBPAPP-9490 -- DB2 cannot handle the boolean query.  Hibernate 3 relies
+	// on developers to know the correct db-specific implementation of bool.
+	@SkipForDialect(DB2Dialect.class)
 	public void testJoinColumns() throws Exception {
 		Parent parent = new Parent();
 		ParentPk pk = new ParentPk();



More information about the hibernate-commits mailing list