Can it be that that side of the relationship is not set when you create the entities? If you use TopLink Essentials (which is the default in GlassFish), it caches entities states as-is, i.e. not doing any relationship mamangement in the background.
thanks,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]
http://forums.java.net/jive/thread.jspa?messageID=234770