wood burning stoves*
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 Android Security Essentials Live Lessons this week in the Android 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Primary key assigned / sequence
 
Similar Threads
How to avoid duplicate inserts in JPA HQL (EJB 3.0 - Java EE 5)
Hibernate 3 Set Primary Key with code
How to get a String randomly?
which generator type to use..?
Unexpected behavior with sequence and trigger