Serialization of DataContext

From: Craig Miskell (cmiskel..lbatross.co.nz)
Date: Fri Sep 13 2002 - 00:34:59 EDT

  • Next message: Andrus: "Re: Serialization of DataContext"

    Subsequent to my ramblings on the user list, attached is a cvs diff of
    changes that add Serialization ability to DataContext. If the parent of
    the DataContext is a DataDomain, it serializes the name of the domain,
    rather than the DataDomain. If the parent is other than a DataDomain, it
    just hopes that the parent is Serializable, so it'll work for simple cases
    at least.

    Also required is to add "implements Serializable" to
    org.objectstyle.cayenne.access.ToManyList and
    org.objectstyle.cayenne.ObjectID
    but I couldn't quite be bothered putting together patch files for those
    two :-)

    On with the battles

    Craig Miskell
    Programmer, Black Albatross, Otago University, New Zealand
    -----BEGIN GEEK CODE BLOCK-----
    Version: 3.1
    GCS d- s+:- a-->? C++++(++)$ ULXH+++$>++++ P+>++++ L++$>++++$ E--- W+++$
    N+ K? w--- !O M-- V? PS--- PE Y t++ 5 X+++ R-- tv+ b+>+++ DI++++ D+ G+ e++
    h--- r+++ y+++
    ------END GEEK CODE BLOCK------





    This archive was generated by hypermail 2.0.0 : Fri Sep 13 2002 - 00:35:06 EDT