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#4072676

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072676
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to