Re: Serialization of DataContext

From: Andrus (
Date: Mon Sep 16 2002 - 00:39:49 EDT

  • Next message: Magic Hat: "JDO?"

    Hi Craig,

    I just applied your patch to DataContext (with only changes being code
    formatting). I also changed ObjectId & ToManyList to implement Serializable
    interface. Let us know if this works at all.

    Also I guess we need some unit tests of serialization behavior. I skipped
    that part for now.


    At 04:34 PM 9/13/2002 +1200, Craig Miskell wrote:
    >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
    >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 : Mon Sep 16 2002 - 00:39:31 EDT