Hi,
Do you set up relationships on both sides before persisting the entities? If you are using TopLink Essentials, it stores copies of your entities in the 2nd level (EMF-level) cache as-is, and doesn't refresh the data, unless you explicitly ask it do so.
Regards,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]
http://forums.java.net/jive/thread.jspa?messageID=235662