Meaningless Drivel is fun!*
The moose likes Object Relational Mapping and the fly likes Primary key assigned / sequence Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Primary key assigned / sequence" Watch "Primary key assigned / sequence" New topic
Author

Primary key assigned / sequence

Pranav Sharma
Ranch Hand

Joined: Oct 27, 2003
Posts: 258
Hi
I have a case where the primary key for an entity can be "generated and assigned" by an external system or generated by an oracle "sequence".

What is the cleanest way to achieve this in Hibernate 3.6.10.

Thanks
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Primary key assigned / sequence