diff --git a/hibernate-core/src/test/java/org/hibernate/orm/test/schematools/PrimaryKeyColumnOrderTest.java b/hibernate-core/src/test/java/org/hibernate/orm/test/schematools/PrimaryKeyColumnOrderTest.java index 3d1483dd2d7b..b4291d23f880 100644 --- a/hibernate-core/src/test/java/org/hibernate/orm/test/schematools/PrimaryKeyColumnOrderTest.java +++ b/hibernate-core/src/test/java/org/hibernate/orm/test/schematools/PrimaryKeyColumnOrderTest.java @@ -73,7 +73,9 @@ public void setUp(SessionFactoryScope scope) { @AfterEach public void tearDown(SessionFactoryScope scope) { - scope.dropData(); + scope.inTransaction( session -> + session.createNativeQuery( "drop table TEST_ENTITY " ).executeUpdate() + ); } @Test