Thank you!
I put my association as LAZY and now it works.
Regarding my first question my solution was to change the database. I could not find a way for glassfish/toplink to interpret zero as null for foreign keys in my mappings.
[Message sent by forum member 'woel' (woel)]
http://forums.java.net/jive/thread.jspa?messageID=239552