views:

198

answers:

2

Hello,

I'm facing a problem with eclipselink under websphere 7.0 in a clustered environment. When my entity is serialized every 1-n relationship lazy is loaded, even if the entity is detached. How can I avoid this behavior, without having to use DTO?

Thank you very much

+1  A: 

Have you overwritten 'readObject/writeObject' or is the Entity Externalizable? Make sure these methods are not triggering lazy relationships.

Gordon Yorke
A: 

Hi, I tried to override the writeObject to avoid that behavior, but was unsure on how to do that. Any advice?

Thank you very much

Manuele Piastra