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