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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...