I use serialization but when I deserialize an object and I try to resolve a relation I catch this exception:
Entity is detached from DAO context
I think because the daoSession and myDao are transient and are nullified on serialization.
How can I reset daoSession and myDao safely?