[jboss-user] [EJB 3.0] - Re: @GeneratedValue: Unknown Id.generator
ALRubinger
do-not-reply at jboss.com
Thu Aug 31 02:15:10 EDT 2006
Try something like:
@Id()
| @GeneratedValue(generator = "autoincrement")
| @GenericGenerator(name = "autoincrement", strategy = "identity")
| public Long getId() {
| return id;
| }
...where @GeneratedValue.generator is equal to @GenericGenerator.name. Valid strategies:
http://www.hibernate.org/hib_docs/reference/en/html/mapping.html#mapping-declaration-id-generator
S,
ALR
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968532#3968532
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968532
More information about the jboss-user
mailing list