Register / Login
this forum made possible by our volunteer staff, including ...
Roel De Nijs
Stephan van Hulst
Object Relational Mapping
Autoincrement / Sequence in OJB - something like generator "native" in Hibernate
posted 10 years ago
Does anybody know if it's possible to define a primary key as autoincrement OR sequence field and let OJB decide whether it uses one of the both ... depending on the underlying database!?
I found that it's possible to use either a autoincrement or a sequence.
In Hibernate you can define the generator as "native" ... so the same code (
+ XML mapping) serve both needs.
Thanks a lot!
Boost this thread!
Problem with OJB
Experiences with Hibernate, JDO, Toplink
Horible tiney issue in Hibernate.
id value should be sequence or asssigned
Discussion OJB vs. Hibernate