cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: Queries order on commit.
Date Mon, 21 Jul 2008 07:32:29 GMT

> From the example in your message, you do not the *exiting*  
> MasterScheduleAux objects, you still delete the old ones, and  
> reinsert them back.

This of course should read "modify the existing MasterScheduleAux  
objects". Monday morning, tough time :-)

Andrus


On Jul 21, 2008, at 10:26 AM, Andrus Adamchik wrote:

>
> On Jul 18, 2008, at 7:03 PM, Laurent Marchal wrote:
>
>> I managed to modify directly the object, removing the relation from  
>> MasterSchedule->MasterScheduleAux after deleting
>> the MasterScheduleAux object.
>
> From the example in your message, you do not the *exiting*  
> MasterScheduleAux objects, you still delete the old ones, and  
> reinsert them back. I suggest that in 'createAux' method you first  
> check if there is an existing matching MasterScheduleAux object  
> attached to "this" MasterSchedule for a given compound FK, and use  
> this object if it exists, instead of creating a new one.
>
> Andrus


Mime
View raw message