db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Bengtson <e...@jpox.org>
Subject detachable vs non detachable classes serialization compatible
Date Sun, 06 May 2007 12:39:20 GMT
Hi,

The spec says classes that detachable and non detachable classes are not
compatible intentionally. I would like to propose a change to this behavior and
let the “jdoDetachedState” lose on unmarshalling.

From:
"Classes marked as Detachable are not serialization-compatible with un-enhanced
classes. This is intentional, and requires that the enhanced version of the
class be used wherever the instance might be instantiated."

To:
"Classes marked as Detachable are not serialization-compatible with un-enhanced
classes. When unmarshalling a detached object with an un-enhanced version of
the class, the detached state is dropped and no further read or change tracking
will occur on the unmarshalled instance."

Regards,

Erik Bengtson

Mime
View raw message