cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Kienenberger" <mkien...@gmail.com>
Subject Re: Temporary Objects
Date Tue, 27 Mar 2007 20:25:27 GMT
Temporary is unregistered.   Or marked as deleted but registered.
Your workaround seems reasonable.



On 3/27/07, Peter Karich <peathal@yahoo.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
>

Mime
View raw message