[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Using Oracle sequence with JBOSS

genman do-not-reply at jboss.com
Fri Aug 10 12:27:55 EDT 2007


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")
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073119#4073119

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073119



More information about the jboss-user mailing list