Re: Temporary Objects

From: Mike Kienenberger (mkienen..mail.com)
Date: Tue Mar 27 2007 - 16:25:27 EDT

  • Next message: Peter Karich: "Re: Temporary Objects"

    Temporary is unregistered. Or marked as deleted but registered.
    Your workaround seems reasonable.

    On 3/27/07, Peter Karich <peatha..ahoo.de> wrote:
    >
    > > Your second problem (trying to add references to non-persistent
    > > objects to a persistent object) is a hard one. If you post what
    > > you're trying to do specifically, maybe someone can suggest an
    > > alternate design pattern. By default, Cayenne attempts to initialize
    > > persistence if it finds a non-persisted object being added to the
    > > object graph. Maybe the solution is to construct your non-persisted
    > > objects in a "COMMITTED" state so that Cayenne doesn't have issues
    > > with them.
    >
    > Nothing specifically. I want to use all my TimeInterval's with
    > attributes and 2 "toOneTargets" although they are not registered (is
    > this *temporary* or is "registered but not commited" *temporary*?)
    > My workaround is to collect all not registered objects in a list and
    > register them. Before commiting I unregister them.
    >
    > Peter.
    >
    >
    > ___________________________________________________________
    > Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
    >



    This archive was generated by hypermail 2.0.0 : Tue Mar 27 2007 - 16:26:27 EDT