diff --git a/hibernate-core/src/test/java/org/hibernate/test/where/annotations/LazyElementCollectionBasicNonUniqueIdWhereTest.java b/hibernate-core/src/test/java/org/hibernate/test/where/annotations/LazyElementCollectionBasicNonUniqueIdWhereTest.java index fa60687238..cc7f602f8c 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/where/annotations/LazyElementCollectionBasicNonUniqueIdWhereTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/where/annotations/LazyElementCollectionBasicNonUniqueIdWhereTest.java @@ -22,7 +22,8 @@ import org.hibernate.Hibernate; import org.hibernate.Session; import org.hibernate.annotations.Immutable; import org.hibernate.annotations.Where; - +import org.hibernate.dialect.H2Dialect; +import org.hibernate.testing.RequiresDialect; import org.hibernate.testing.TestForIssue; import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase; import org.junit.After; @@ -36,8 +37,10 @@ import static org.junit.Assert.assertTrue; /** * @author Gail Badner */ +@RequiresDialect(H2Dialect.class) public class LazyElementCollectionBasicNonUniqueIdWhereTest extends BaseCoreFunctionalTestCase { + @Override protected Class[] getAnnotatedClasses() { return new Class[] { Material.class, Building.class }; } diff --git a/hibernate-core/src/test/java/org/hibernate/test/where/annotations/LazyElementCollectionWithLazyManyToOneNonUniqueIdWhereTest.java b/hibernate-core/src/test/java/org/hibernate/test/where/annotations/LazyElementCollectionWithLazyManyToOneNonUniqueIdWhereTest.java index d4affcfa07..0095aa245e 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/where/annotations/LazyElementCollectionWithLazyManyToOneNonUniqueIdWhereTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/where/annotations/LazyElementCollectionWithLazyManyToOneNonUniqueIdWhereTest.java @@ -27,7 +27,8 @@ import org.hibernate.Hibernate; import org.hibernate.Session; import org.hibernate.annotations.Immutable; import org.hibernate.annotations.Where; - +import org.hibernate.dialect.H2Dialect; +import org.hibernate.testing.RequiresDialect; import org.hibernate.testing.TestForIssue; import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase; import org.junit.After; @@ -41,8 +42,10 @@ import static org.junit.Assert.assertTrue; /** * @author Gail Badner */ +@RequiresDialect(H2Dialect.class) public class LazyElementCollectionWithLazyManyToOneNonUniqueIdWhereTest extends BaseCoreFunctionalTestCase { + @Override protected Class[] getAnnotatedClasses() { return new Class[] { Material.class, Building.class, Rating.class, Size.class }; } diff --git a/hibernate-core/src/test/java/org/hibernate/test/where/hbm/LazyElementCollectionBasicNonUniqueIdWhereTest.java b/hibernate-core/src/test/java/org/hibernate/test/where/hbm/LazyElementCollectionBasicNonUniqueIdWhereTest.java index 361bded947..6fb5a86657 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/where/hbm/LazyElementCollectionBasicNonUniqueIdWhereTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/where/hbm/LazyElementCollectionBasicNonUniqueIdWhereTest.java @@ -13,7 +13,8 @@ import java.util.Set; import org.hibernate.Hibernate; import org.hibernate.Session; - +import org.hibernate.dialect.H2Dialect; +import org.hibernate.testing.RequiresDialect; import org.hibernate.testing.TestForIssue; import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase; import org.junit.After; @@ -27,8 +28,10 @@ import static org.junit.Assert.assertTrue; /** * @author Gail Badner */ +@RequiresDialect(H2Dialect.class) public class LazyElementCollectionBasicNonUniqueIdWhereTest extends BaseCoreFunctionalTestCase { + @Override protected String[] getMappings() { return new String[] { "where/hbm/LazyElementCollectionBasicNonUniqueIdWhereTest.hbm.xml" }; } diff --git a/hibernate-core/src/test/java/org/hibernate/test/where/hbm/LazyElementCollectionWithLazyManyToOneNonUniqueIdWhereTest.java b/hibernate-core/src/test/java/org/hibernate/test/where/hbm/LazyElementCollectionWithLazyManyToOneNonUniqueIdWhereTest.java index 9ea796305c..1a35df8580 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/where/hbm/LazyElementCollectionWithLazyManyToOneNonUniqueIdWhereTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/where/hbm/LazyElementCollectionWithLazyManyToOneNonUniqueIdWhereTest.java @@ -13,7 +13,8 @@ import java.util.Set; import org.hibernate.Hibernate; import org.hibernate.Session; - +import org.hibernate.dialect.H2Dialect; +import org.hibernate.testing.RequiresDialect; import org.hibernate.testing.TestForIssue; import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase; import org.junit.After; @@ -27,8 +28,10 @@ import static org.junit.Assert.assertTrue; /** * @author Gail Badner */ +@RequiresDialect(H2Dialect.class) public class LazyElementCollectionWithLazyManyToOneNonUniqueIdWhereTest extends BaseCoreFunctionalTestCase { + @Override protected String[] getMappings() { return new String[] { "where/hbm/LazyElementCollectionWithLazyManyToOneNonUniqueIdWhereTest.hbm.xml" }; }