[jboss-user] [EJB 3.0] - Re: @GeneratedValue(strategy=GenerationType.AUTO) for oracle

2008-07-15 Thread oskar.carlstedt
Hi! I haven not read all posts but I know the following works with Oracle. 1. Annotate your entity with @Entity as normal. 2. Annotate your ID column with @Id. @GeneratedValue(strategy=GenerattionType.AUTO, generator="seqMyObject"), @SequenceGenerator(name="seqMyObject", sequenceMame="SEQ_MY_O

[jboss-user] [EJB 3.0] - Re: @GeneratedValue(strategy=GenerationType.AUTO) for oracle

2008-07-15 Thread celle2006
Hi rkiran81, i think the problem is that you cannot use the @GeneratedValue Tag as you do. The oracle database usually works with sequences to create IDs. You can use these Sequences with ejb, too. Just add the following to your RolesProfileBean EJB. @Entity @SequenceGenerator(name="sequenceNa

[jboss-user] [EJB 3.0] - Re: @GeneratedValue(strategy=GenerationType.AUTO) for oracle

2008-07-15 Thread stevoo
with out being 100% sure ... did you did updates on the tables ? you had a working directory and changed the structure of your db ? Perhaps if you change you persistence xml if it is from "update" to "create-drop" to drop and recreate the database. perhaps that may synchronize the db. Bare