From 7abf4398eeb8c5b727666c1e5078be0cec226679 Mon Sep 17 00:00:00 2001 From: Jan Martiska Date: Mon, 12 Dec 2016 16:43:36 +0100 Subject: [PATCH] HHH-11335 skip ByteArrayIdTest, PrimitiveByteArrayIdTest on Oracle (cherry picked from commit e10d87085d6fb0eec6bf6252ae11ea1c88741b50) --- .../test/java/org/hibernate/test/id/array/ByteArrayIdTest.java | 2 ++ .../org/hibernate/test/id/array/PrimitiveByteArrayIdTest.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/hibernate-core/src/test/java/org/hibernate/test/id/array/ByteArrayIdTest.java b/hibernate-core/src/test/java/org/hibernate/test/id/array/ByteArrayIdTest.java index 10d8f02ca1..c4b3aec08a 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/id/array/ByteArrayIdTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/id/array/ByteArrayIdTest.java @@ -16,6 +16,7 @@ import javax.persistence.Table; import org.hibernate.Query; import org.hibernate.Session; import org.hibernate.dialect.MySQL5Dialect; +import org.hibernate.dialect.Oracle9iDialect; import org.hibernate.testing.SkipForDialect; import org.hibernate.testing.TestForIssue; @@ -32,6 +33,7 @@ import static org.junit.Assert.assertTrue; * @author Gail Badner */ @SkipForDialect(value = MySQL5Dialect.class, comment = "BLOB/TEXT column 'id' used in key specification without a key length") +@SkipForDialect(value = Oracle9iDialect.class, comment = "ORA-02329: column of datatype LOB cannot be unique or a primary key") public class ByteArrayIdTest extends BaseCoreFunctionalTestCase { @Override diff --git a/hibernate-core/src/test/java/org/hibernate/test/id/array/PrimitiveByteArrayIdTest.java b/hibernate-core/src/test/java/org/hibernate/test/id/array/PrimitiveByteArrayIdTest.java index 5871609cdc..5b33a2d2a0 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/id/array/PrimitiveByteArrayIdTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/id/array/PrimitiveByteArrayIdTest.java @@ -20,6 +20,7 @@ import org.junit.Test; import org.hibernate.Query; import org.hibernate.Session; import org.hibernate.dialect.MySQL5Dialect; +import org.hibernate.dialect.Oracle9iDialect; import org.hibernate.testing.SkipForDialect; import org.hibernate.testing.TestForIssue; @@ -33,6 +34,7 @@ import static org.junit.Assert.assertTrue; * @author Gail Badner */ @SkipForDialect(value = MySQL5Dialect.class, comment = "BLOB/TEXT column 'id' used in key specification without a key length") +@SkipForDialect(value = Oracle9iDialect.class, comment = "ORA-02329: column of datatype LOB cannot be unique or a primary key") public class PrimitiveByteArrayIdTest extends BaseCoreFunctionalTestCase { @Override