From 9b52b4ed701b39a0192593ada705b8bcef73821f Mon Sep 17 00:00:00 2001 From: Gail Badner Date: Wed, 18 Jan 2017 00:28:16 -0500 Subject: [PATCH] HHH-11335 : Fix due to backporting (@SkipForDialect is not repeatable) --- .../java/org/hibernate/test/id/array/ByteArrayIdTest.java | 8 ++++++-- .../hibernate/test/id/array/PrimitiveByteArrayIdTest.java | 7 +++++-- 2 files changed, 11 insertions(+), 4 deletions(-) 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 c4b3aec08a..4b486b6cb0 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 @@ -32,8 +32,12 @@ import static org.junit.Assert.assertTrue; * @author Piotr Krauzowicz * @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") +@SkipForDialect( + value = { MySQL5Dialect.class, Oracle9iDialect.class }, + comment = + "MySQL5Dialect:BLOB/TEXT column 'id' used in key specification without a key length (HHH-10904); " + + "Oracle9i: ORA-02329: column of datatype LOB cannot be unique or a primary key (HHH-11335)" +) 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 5b33a2d2a0..09f3ad29cf 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 @@ -33,8 +33,11 @@ import static org.junit.Assert.assertTrue; * @author Piotr Krauzowicz * @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") +@SkipForDialect( + value = { MySQL5Dialect.class, Oracle9iDialect.class }, + comment = "MySQL5Dialect:BLOB/TEXT column 'id' used in key specification without a key length (HHH-10904); " + + "Oracle9i: ORA-02329: column of datatype LOB cannot be unique or a primary key (HHH-11335)" +) public class PrimitiveByteArrayIdTest extends BaseCoreFunctionalTestCase { @Override