Ok.. I figured it out.. sorta.
The problem is:
|
| @Entity
| public class Workout implements Serializable {
|
| @Id @NotNull @GeneratedValue
| private Long id;
|
When I call em.persist(workout) it fails validation because id is null.. If I take out
@GeneratedValue and add an ID manually, all is OK.
Why isn't @GeneratedValue working ?
J
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072676#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...