Re: Working with Transient Objects

From: Elia Morling (eli..amiljen.se)
Date: Wed Jun 30 2004 - 12:13:50 EDT

  • Next message: dan17..elus.net: "Parent to Grandchild Relationships"

    Hm. Reading the documentation I found that a DataObject can only belong to one
    DataContext for the duration of its object lifecycle.

    I don't know if I can use DataContextDelegate and implement shouldMergeChanges
    by having it check a custom commitToDB flag in the DataObject?

    Elia

    ---- Original Message -----
    From: "Elia Morling" <eli..amiljen.se>
    To: <cayenne-use..bjectstyle.org>
    Sent: Wednesday, June 30, 2004 5:43 PM
    Subject: Re: Working with Transient Objects

    > > how about putting your temporary objects into some temporary database?
    >
    > Seems like an ugly solution.
    >
    > > Most people would have a temporary database for development where you can do
    > > anything during development.
    >
    > This would not be for development it would be for launch.
    >
    > > Finally, if you don't commit, they won't (stay) persist(ed).
    >
    > That's the problem. Some objects should be comitted others not within the same context.
    >
    > Is there a way to add temporary objects to one context, but share them with another?
    >
    > Elia
    >
    > ----- Original Message -----
    > From: "McDaniel, Joe R." <mcdanij..igr.org>
    > To: <cayenne-use..bjectstyle.org>
    > Sent: Wednesday, June 30, 2004 4:01 PM
    > Subject: RE: Working with Transient Objects
    >
    >
    > Since you can have multiple databases, how about putting your temporary
    > objects into some temporary database? Most people would have a temporary
    > database for development where you can do anything during development.
    > Finally, if you don't commit, they won't (stay) persist(ed).
    >
    > Best,
    >
    > Joe
    >
    >
    >
    >
    >



    This archive was generated by hypermail 2.0.0 : Wed Jun 30 2004 - 12:13:53 EDT