I have the following sequence:
[as seen now in Toad]:
CREATE SEQUENCE LOG_ID_SEQ START WITH 787585 MAXVALUE 1000000000000000000000000000 MINVALUE 1 NOCYCLE NOCACHE NOORDER / I have the following table sequence generator:
@SequenceGenerator(name="LOG_ID_SEQ", sequenceName="LOG_ID_SEQ") @Id @Column(name = "log_id", nullable = false) @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="LOG_ID_SEQ") Long id; The highest value of log_id is currently 39379151
Now the weird problem: the client created a dump of the poduction database and imported it in the test database. When I tested the application I got a ORA-00001 unique constraint error on this table.
When I imported the same dump and test the application on my machine I do not get that error??
How is this possible with Hibernate? I have no idea where or what to look for.
[UPDATED]: To be accurate: after I imported the dump into a new schema locally the last sequence value in the dump was 39354002. Without resetting the sequence my next value is 39379151.