File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


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
 
GeeCON Prague 2014
 
subject: Primary key assigned / sequence