On Jun 2, 2009, at 12:08 PM, Andrey Razumovsky wrote:
>>>
>>> 2. Deletion strategy for DataDomain. This means I do not always
>>> fire
>>> DeleteAction, but maybe something else (update action in my case).
>>>
>>
>> Yeah, good idea to move this down the stack. I would love to have the
>> ObjectContext level code to stay unchanged, but then generate
>> UPDATE instead
>> of DELETE at the lower levels if entity is tagged as "soft delete".
>
>
> I actually want to see this more generic, i.e. DeletionStrategy
> interface
> with one default implementation (which fires DELETE) and ability to
> set my
> own.
Not sure I understand, but I guess we'll see how it looks when you
commit the code.
Just one question - are you planning to implement a "soft delete"
feature in Cayenne (with appropriate flags per entity settable in the
Modeler), or just an extension point to hook up your own strategy (or
both)?
Andrus
This archive was generated by hypermail 2.0.0 : Tue Jun 02 2009 - 06:01:33 EDT