mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-27 14:30:16 +00:00
HHH-9169 : SQLServer2012Dialect creates sequences starting from Long.MIN_VALUE
This commit is contained in:
parent
ed7144c025
commit
231fb1b195
@ -35,8 +35,15 @@ public void testStartOfSequence() throws Exception {
|
|||||||
s.persist(person);
|
s.persist(person);
|
||||||
tx.commit();
|
tx.commit();
|
||||||
s.close();
|
s.close();
|
||||||
|
|
||||||
assertTrue(person.getId() == 10);
|
assertTrue(person.getId() == 10);
|
||||||
}
|
|
||||||
|
s = openSession();
|
||||||
|
tx = s.beginTransaction();
|
||||||
|
s.createQuery( "delete from Person" ).executeUpdate();
|
||||||
|
tx.commit();
|
||||||
|
s.close();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user