Hello,
I'm playing with Hibernate 3.0.3 + annotations beta2 and mysql 3.x. I cannot figure out how to define an id generation strategy, which would provide application-wide unique ids. I think this would be easy with a DB supporting sequences, but this is not the case.
@Id(generate=GeneratorType.TABLE) works, but stores separate "next hi id value" per each class / table.
I find this application-wide ids generally as a good idea and in addition this is a must for union-subclass inheritance mapping strategy.
Thanks for any help,
Karel
|