It should work if both Person and Address have their ids annotated like

@Id
  | @GeneratedValue
  | private int id;
  | 
Hibernate should take care of all the details.

How are you using EntityManager to persist them?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053669#4053669

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

Reply via email to