In the database I have the SEQUENCE_TABLE table with SEQUENCE_ID and SEUQNCE_VALUE fields. I have a row with the pair of values
SEQUENCE_ID | SEQUENCE_VALUE USER | 100
so, the next value of the userId field (when I persist a new User) should be 100 and the table columnSEQUENCE_VALUE value with SEQUNCE_ID = 'USER' should pass to 101.
But what happens is that the value on the table row passes to 101 but the userId field value in the newly created user is somehow random (11201, 1060). Am I doing (or thinking) someting wrong or is this a bug?