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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to