@SequenceGenerator and @GeneratedValue annotations
843830Aug 31 2008 — edited Sep 2 2008Hi,
I'm using RAD 7.5 to construct a JEE project and I use ejb3.
I tried to use the @SequenceGenerator and @GeneratedValue on the @Id field.
It didn't work. The exceptions were org.apache.openjpa.persistence.persistenceException:null
and inside javax.transaction.systemException.
I work with Oracle 10 db.
I tried to apply the @SequenceGenerator on the @Entity and @Id annotations.
The sequence is already defined in the db.
thanks
Itamar