On 19/09/2008, at 11:22 PM, Andrus Adamchik wrote:
I think Ari and Marcin ran into a similar problem (wonder if there is a duplicate Jira?).
I can't find one just now, but yes. We definitely have this problem. And we do exactly the same thing with a deleted flag. I don't know if this has anything to do with relations though. Can the bug be triggered by simply having a list of objects and marking one as deleted without removing it from the context?
The bug itself needs to be fixed, but I've also been thinking for a while that it would be nice for Cayenne modeler to have an option to support this type of delete. Really it would just be a simple way to choose "[ ] Don't permanently delete records." and the appropriate lifecycle hook, field, and qualifier are all added.
It is a pretty common sort of use case. Ari Maniatis --------------------------> ish http://www.ish.com.au Level 1, 30 Wilson Street Newtown 2042 Australia phone +61 2 9550 5001 fax +61 2 9550 4001 GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A
