Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Autoincrement / Sequence in OJB - something like generator "native" in Hibernate

 
R�diger Engelberger
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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 (Java + XML mapping) serve both needs.

Any ideas?

Thanks a lot!

R�diger Engelberger
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic