From 0c80b409a1ad495dbc1e286071d1d9846e73e9ed Mon Sep 17 00:00:00 2001 From: Gail Badner Date: Thu, 19 Jan 2012 15:49:11 -0800 Subject: [PATCH] HHH-5472 : test fixes for dialects that don't support identities --- .../jpa/identity/MultiCircleJpaCascadeIdentityTest.java | 3 +++ .../nonjpa/identity/MultiCircleNonJpaCascadeIdentityTest.java | 3 +++ 2 files changed, 6 insertions(+) diff --git a/hibernate-core/src/matrix/java/org/hibernate/test/annotations/cascade/multicircle/jpa/identity/MultiCircleJpaCascadeIdentityTest.java b/hibernate-core/src/matrix/java/org/hibernate/test/annotations/cascade/multicircle/jpa/identity/MultiCircleJpaCascadeIdentityTest.java index dd9f12e51d..d2a2d50a5b 100644 --- a/hibernate-core/src/matrix/java/org/hibernate/test/annotations/cascade/multicircle/jpa/identity/MultiCircleJpaCascadeIdentityTest.java +++ b/hibernate-core/src/matrix/java/org/hibernate/test/annotations/cascade/multicircle/jpa/identity/MultiCircleJpaCascadeIdentityTest.java @@ -29,6 +29,8 @@ import org.junit.Before; import org.junit.Test; import org.hibernate.Session; +import org.hibernate.testing.DialectChecks; +import org.hibernate.testing.RequiresDialectFeature; import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase; /** @@ -79,6 +81,7 @@ import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase; * Entities are inserted in the following order: * c, e, d, b, g, f. */ +@RequiresDialectFeature(DialectChecks.SupportsIdentityColumns.class) public class MultiCircleJpaCascadeIdentityTest extends BaseCoreFunctionalTestCase { private B b; private C c; diff --git a/hibernate-core/src/matrix/java/org/hibernate/test/annotations/cascade/multicircle/nonjpa/identity/MultiCircleNonJpaCascadeIdentityTest.java b/hibernate-core/src/matrix/java/org/hibernate/test/annotations/cascade/multicircle/nonjpa/identity/MultiCircleNonJpaCascadeIdentityTest.java index 7d0f5d6b1a..7500010371 100644 --- a/hibernate-core/src/matrix/java/org/hibernate/test/annotations/cascade/multicircle/nonjpa/identity/MultiCircleNonJpaCascadeIdentityTest.java +++ b/hibernate-core/src/matrix/java/org/hibernate/test/annotations/cascade/multicircle/nonjpa/identity/MultiCircleNonJpaCascadeIdentityTest.java @@ -29,6 +29,8 @@ import org.junit.Before; import org.junit.Test; import org.hibernate.Session; +import org.hibernate.testing.DialectChecks; +import org.hibernate.testing.RequiresDialectFeature; import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase; /** @@ -79,6 +81,7 @@ import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase; * Entities are inserted in the following order: * c, e, d, b, g, f. */ +@RequiresDialectFeature(DialectChecks.SupportsIdentityColumns.class) public class MultiCircleNonJpaCascadeIdentityTest extends BaseCoreFunctionalTestCase { private B b; private C c;