Register / Login
Object Relational Mapping
Primary key assigned / sequence
posted 1 year ago
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.
It is sorta covered in the
JavaRanch Style Guide
How to get a String randomly?
Hibernate 3 Set Primary Key with code
Unexpected behavior with sequence and trigger
which generator type to use..?
How to avoid duplicate inserts in JPA HQL (EJB 3.0 - Java EE 5)