This content has been marked as final.
Show 1 reply
-
1. Re: Using Oracle sequence with JBOSS
genman Aug 10, 2007 12:27 PM (in response to neisan)This is an EJB3 question...
But anyway... Add this to your getId():@GeneratedValue(strategy = GenerationType.AUTO, generator = "MY_ID_SEQ")
Then declare the generator to your class declaration:@SequenceGenerator(name = "MY_ID_SEQ", sequenceName = "MY_ID_SEQ")