It turns out the following example works when using mysql 5.x, however it is not used when using the oracle 10g database.
Is there a way to define a unique identifier field that is independent of database technology?
@Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name="id") private long id;
I tested this in sleep mode, and the following exception occurs only when using Oracle:
org.hibernate.MappingException: Dialect does not support identity key generation
java hibernate jpa datanucleus
Jacob
source share