Re: [h2] Data Inconsistencies between H2 DB and the generated SQL

2018-01-27 Thread Kerry Sainsbury
The column with the 'wrong' value is not an auto-increment column, so auto-increment isn't likely to be the problem. Most likely explanation is that something else has changed parent_id from 6 to 2, after the original insert. On 25 January 2018 at 15:50, Anerudh Balaji wrote: > Hey all, > > Whil

[h2] Data Inconsistencies between H2 DB and the generated SQL

2018-01-24 Thread Anerudh Balaji
Hey all, While using Hibernate w/ H2, we ran into this weird case today where the H2 primary Id for an entity and the generated SQL Id for the same entity had a mismatch. Been struggling with this one for a while and any help would be appreciated ! Here's the Java class that we have (Cut out