Andy Jefferson schrieb:
Concerning 3., well, you know, there's people making mistakes (like myself), and one might discover some day that relationship information had been deleted for years, and that this information is suddenly badly missing. Seriously, for some 1:n associations we were very happy that internal errors occured in our application due to FK constraints being violated, as we forgot about certain relationships and that we never want that information to get lost (even though we allowed the user to try to delete it). So if that unspecified "SET NULL" or "remove from all relationships upon deletion" feature had existed for 1:n also, we would have been in trouble.JDO2 did intend to disallow the behavior you describe. Additionally, the metadata allows you to explicitly declare the behavior of the FK on delete. By looking at the code in DeleteRequest, it occurs to me that this particular code would be the perfect place to keep 1:1 assocations from degenerating into 1:n assocations, though! Cheers, Jörg |
- deletePersistent() automatically nulling out referring... Jörg von Frantzius
- Re: deletePersistent() automatically nulling out ... Craig L Russell
- Re: deletePersistent() automatically nulling ... Andy Jefferson
- Re: deletePersistent() automatically null... Jörg von Frantzius
- Re: deletePersistent() automatically nulling ... Jörg von Frantzius
- Re: deletePersistent() automatically null... Jörg von Frantzius
- Re: deletePersistent() automatically ... Andy Jefferson
