Make sure you use a GeneratedValue annotation in your model.
I.e.
| @Id
| @Column(name = "id", unique = true, nullable = false)
| @GeneratedValue(strategy = GenerationType.IDENTITY)
| @NotNull
| public long getId() {
| return this.id;
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097555#4097555
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097555
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user