From 659bbc01678b4d65e2e74f9d40f15cc32ed1d89e Mon Sep 17 00:00:00 2001 From: Christian Beikov Date: Wed, 19 Jan 2022 12:24:17 +0100 Subject: [PATCH] Re-add accidently removed SkipDialects for ManyToOneWithFormulaTest --- .../manytoonewithformula/ManyToOneWithFormulaTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hibernate-core/src/test/java/org/hibernate/orm/test/annotations/manytoonewithformula/ManyToOneWithFormulaTest.java b/hibernate-core/src/test/java/org/hibernate/orm/test/annotations/manytoonewithformula/ManyToOneWithFormulaTest.java index f9cc2dbb6b..8edbc4ccd3 100644 --- a/hibernate-core/src/test/java/org/hibernate/orm/test/annotations/manytoonewithformula/ManyToOneWithFormulaTest.java +++ b/hibernate-core/src/test/java/org/hibernate/orm/test/annotations/manytoonewithformula/ManyToOneWithFormulaTest.java @@ -9,7 +9,10 @@ package org.hibernate.orm.test.annotations.manytoonewithformula; import org.hibernate.Session; import org.hibernate.Transaction; import org.hibernate.dialect.HSQLDialect; +import org.hibernate.dialect.OracleDialect; +import org.hibernate.dialect.SQLServerDialect; +import org.hibernate.testing.RequiresDialect; import org.hibernate.testing.SkipForDialect; import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase; import org.junit.Test; @@ -132,6 +135,7 @@ public class ManyToOneWithFormulaTest extends BaseCoreFunctionalTestCase { @Test @SkipForDialect( value = { HSQLDialect.class }, comment = "The used join conditions does not work in HSQLDB. See HHH-4497." ) + @SkipForDialect( value = { OracleDialect.class }, comment = "Oracle do not support 'substring' function" ) public void testManyToOneFromNonPkToNonPk() throws Exception { // also tests usage of the stand-alone @JoinFormula annotation (i.e. not wrapped within @JoinColumnsOrFormulas) Session s = openSession(); @@ -166,6 +170,7 @@ public class ManyToOneWithFormulaTest extends BaseCoreFunctionalTestCase { } @Test + @RequiresDialect(value = { SQLServerDialect.class}) public void testManyToOneFromNonPkToNonPkSqlServer() throws Exception { // also tests usage of the stand-alone @JoinFormula annotation (i.e. not wrapped within @JoinColumnsOrFormulas) Session s = openSession();