|
Hi,
In Hibernate 4.3.10 we used sequences to generate sequencial IDs for the tables like this
{{@SequenceGenerator(name="seq", sequenceName="seq", initialValue=1, allocationSize=1) @Id @GeneratedValue(strategy=GenerationType.AUTO, generator="seq") @Column(name = "primaryID", nullable = false)}}
So that it worked both on SQL, MySQL and Oracle.
Now when we migrated to Hibernate 5.0.1 this same code in when using SQL started to create tables for the sequences (the table is called "seq" as the sequence name) and we must set an initial value in the sequence table for the values to be generated.
I'm not sure if this is a bug, or the functionality has been changed because I can't seem to find any documentation related to this issue.
|