Hello,
My understanding is that serialization will occur unless the attribute is marked transient. Lazy relationships may already be triggered (fetched) at the time serialization occurs causing all entities within the collection to also be serialzed. Marshalling/unmarshaling for serialization is seperate from JPA, and I believe has its own way to mark it as transient allowing you to still persist the JPA relationship (but I don't know it myself)
Best of luck,
Chris
[Message sent by forum member 'chris_delahunt']
http://forums.java.net/jive/thread.jspa?messageID=484979