Hibernate generates negative id values when using a sequence
The new behaviour is the followings: AllocationSize is a range of primary key values reserved for Hibernate. And the select seq.nextval from dual will be done only after hibernate consumed this range of primary keys. So you must declare the same value on both allocationSize (Hibernate) and sequence increment by (DB) When explicitly set allocationSize=500, … Read more