Hibernate version: 3.2.6
MySQL: 5.0.4
I was under the impression that the enhanced TableGenerator would behave like the older MultipleHiLoPerTableGenerator in that a new row would be inserted in the "hibernate_sequences" for each and every entity. I am seeing a different behavior in that there is one and only one "default" row.
I should state that my entities extend a BaseEntity and that the id column is defined within. i.e.
Code:
@Id
@GeneratedValue(generator="hibseq")
@GenericGenerator(name="hibseq", strategy="org.hibernate.id.enhanced.TableGenerator",
parameters = {
@Parameter(name="initial_value", value = "1000"),
@Parameter(name="table_name", value = "hibernate_sequences")
}
)
private Long id;