Thank you!! I thought the persistence provider would automatically use the id of the person object, and I was not aware that you could point to the id field using dot notation in JPQL. Now it seems very obvious (of course).
Thanks again, and you managed to save some strands of hair as well.
You're an angel.
Marius
[Message sent by forum member 'mariusw' (mariusw)]
http://forums.java.net/jive/thread.jspa?messageID=232068