diff --git a/hibernate-core/src/test/java/org/hibernate/orm/test/generatedkeys/generated/GeneratedTest.java b/hibernate-core/src/test/java/org/hibernate/orm/test/generatedkeys/generated/GeneratedTest.java index d70cbb26d3..10d7d16d36 100644 --- a/hibernate-core/src/test/java/org/hibernate/orm/test/generatedkeys/generated/GeneratedTest.java +++ b/hibernate-core/src/test/java/org/hibernate/orm/test/generatedkeys/generated/GeneratedTest.java @@ -17,6 +17,9 @@ import org.hibernate.testing.orm.junit.JiraKey; import org.hibernate.testing.orm.junit.RequiresDialect; import org.hibernate.testing.orm.junit.SessionFactory; import org.hibernate.testing.orm.junit.SessionFactoryScope; +import org.hibernate.testing.orm.junit.SkipForDialect; + +import org.hibernate.dialect.TiDBDialect; import org.hibernate.tool.hbm2ddl.SchemaExport; import org.hibernate.tool.schema.TargetType; import org.junit.jupiter.api.Test; @@ -44,6 +47,7 @@ import static org.junit.jupiter.api.Assertions.assertFalse; @RequiresDialect(H2Dialect.class) @RequiresDialect(DB2Dialect.class) @RequiresDialect(SQLServerDialect.class) +@SkipForDialect(dialectClass = TiDBDialect.class, reason = "TiDB does not support triggers") public class GeneratedTest { @Test diff --git a/hibernate-core/src/test/java/org/hibernate/orm/test/generatedkeys/select/SelectGeneratorTest.java b/hibernate-core/src/test/java/org/hibernate/orm/test/generatedkeys/select/SelectGeneratorTest.java index f0d6b0de3c..a1244a9968 100644 --- a/hibernate-core/src/test/java/org/hibernate/orm/test/generatedkeys/select/SelectGeneratorTest.java +++ b/hibernate-core/src/test/java/org/hibernate/orm/test/generatedkeys/select/SelectGeneratorTest.java @@ -16,6 +16,7 @@ import org.hibernate.dialect.MySQLDialect; import org.hibernate.dialect.OracleDialect; import org.hibernate.dialect.PostgreSQLDialect; import org.hibernate.dialect.SQLServerDialect; +import org.hibernate.dialect.TiDBDialect; import org.hibernate.tool.hbm2ddl.SchemaExport; import org.hibernate.tool.schema.TargetType; @@ -24,6 +25,7 @@ import org.hibernate.testing.orm.junit.JiraKey; import org.hibernate.testing.orm.junit.RequiresDialect; import org.hibernate.testing.orm.junit.SessionFactory; import org.hibernate.testing.orm.junit.SessionFactoryScope; +import org.hibernate.testing.orm.junit.SkipForDialect; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; @@ -42,6 +44,7 @@ import static org.junit.jupiter.api.Assertions.assertFalse; @RequiresDialect(MySQLDialect.class) @RequiresDialect(DB2Dialect.class) @RequiresDialect(SQLServerDialect.class) +@SkipForDialect(dialectClass = TiDBDialect.class, reason = "TiDB does not support triggers") public class SelectGeneratorTest { @Test diff --git a/hibernate-core/src/test/java/org/hibernate/orm/test/generatedkeys/selectannotated/SelectGeneratorTest.java b/hibernate-core/src/test/java/org/hibernate/orm/test/generatedkeys/selectannotated/SelectGeneratorTest.java index 2a094b979c..5412c247a9 100644 --- a/hibernate-core/src/test/java/org/hibernate/orm/test/generatedkeys/selectannotated/SelectGeneratorTest.java +++ b/hibernate-core/src/test/java/org/hibernate/orm/test/generatedkeys/selectannotated/SelectGeneratorTest.java @@ -17,6 +17,9 @@ import org.hibernate.testing.orm.junit.JiraKey; import org.hibernate.testing.orm.junit.RequiresDialect; import org.hibernate.testing.orm.junit.SessionFactory; import org.hibernate.testing.orm.junit.SessionFactoryScope; +import org.hibernate.testing.orm.junit.SkipForDialect; + +import org.hibernate.dialect.TiDBDialect; import org.hibernate.tool.hbm2ddl.SchemaExport; import org.hibernate.tool.schema.TargetType; import org.junit.jupiter.api.Test; @@ -44,6 +47,7 @@ import static org.junit.jupiter.api.Assertions.assertFalse; @RequiresDialect(H2Dialect.class) @RequiresDialect(DB2Dialect.class) @RequiresDialect(SQLServerDialect.class) +@SkipForDialect(dialectClass = TiDBDialect.class, reason = "TiDB does not support triggers") public class SelectGeneratorTest { @Test