diff --git a/hibernate-core/src/test/java/org/hibernate/test/id/SQLServer2012SequenceGeneratorTest.java b/hibernate-core/src/test/java/org/hibernate/test/id/SQLServer2012SequenceGeneratorTest.java index 25cf69c0ee..88339690f1 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/id/SQLServer2012SequenceGeneratorTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/id/SQLServer2012SequenceGeneratorTest.java @@ -35,8 +35,15 @@ public class SQLServer2012SequenceGeneratorTest extends BaseCoreFunctionalTestCa s.persist(person); tx.commit(); s.close(); - + assertTrue(person.getId() == 10); - } + + s = openSession(); + tx = s.beginTransaction(); + s.createQuery( "delete from Person" ).executeUpdate(); + tx.commit(); + s.close(); + + } }