Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

@SequenceGenerator and @GeneratedValue annotations

843830Aug 31 2008 — edited Sep 2 2008
Hi,

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 30 2008
Added on Aug 31 2008
5 comments
601 views