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