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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...