[ZODB-Dev] Writing Persistent Class

Dieter Maurer dieter at handshake.de
Fri Jan 18 15:03:41 EST 2008


Kenneth Miller wrote at 2008-1-17 19:08 -0600:
> ...
>Do I always  
>need to subclass persistent?

When you assign an instance of your (non "persistent" derived) class
as an attribute to a persistent object,
then your instance will be persisted together with its persistent
container.
However, local modifications to your instance are not recognized
by the persistency mechanism. You need to explicitly inform the persistent
container about the change.

Moreover, "persistent" objects define the granularity with which
application and storage interact: load and store work on
the level of persistent objects excluding persistent subobjects.



-- 
Dieter


More information about the ZODB-Dev mailing list