diff --git a/hibernate-core/src/test/java/org/hibernate/orm/test/boot/models/hbm/propertyref/CompositeManyToOnePropertyRefTests.java b/hibernate-core/src/test/java/org/hibernate/orm/test/boot/models/hbm/propertyref/CompositeManyToOnePropertyRefTests.java index 04f524583c..c109a0f0fb 100644 --- a/hibernate-core/src/test/java/org/hibernate/orm/test/boot/models/hbm/propertyref/CompositeManyToOnePropertyRefTests.java +++ b/hibernate-core/src/test/java/org/hibernate/orm/test/boot/models/hbm/propertyref/CompositeManyToOnePropertyRefTests.java @@ -86,10 +86,10 @@ public class CompositeManyToOnePropertyRefTests { scope.inTransaction( (session) -> { session.doWork( (connection) -> { try (Statement statement = connection.createStatement()) { - final int deleteAccounts = statement.executeUpdate( "delete accounts" ); + final int deleteAccounts = statement.executeUpdate( "delete from accounts" ); assertThat( deleteAccounts ).isEqualTo( 1 ); - final int deletePersons = statement.executeUpdate( "delete persons" ); + final int deletePersons = statement.executeUpdate( "delete from persons" ); assertThat( deletePersons ).isEqualTo( 1 ); } } );