[jboss-user] [EJB 3.0] - Re: The database returned no natively generated identity val

Wolfgang Knauf do-not-reply at jboss.com
Fri Feb 13 04:42:54 EST 2009


Shouldn't the "@GeneratedValue" annotation declare a sequence strategy (instead of "Auto")?

@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "projectid_sequence")

Which database do you use?

Wolfgang

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

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



More information about the jboss-user mailing list