Issue 10546: Request clarification of how to handle a dangling related object (data-distribution-rtf) Source: OCI (Mr. Donald Busch, busch_d(at)ociweb.com) Nature: Clarification Severity: Summary: How should dangling relationships be handled? For example, suppose I have a Foo->Bar relationship. My Foo has a related Bar. 1. I clone the Foo and the Bar into the CacheAccess. 2. Someone deletes the Bar, but does not update the Foo's relationship. 3. I refresh the CacheAccess, which deletes my Bar in the CacheAccess, but my Foo thinks it's still related. What should happen when I call Foo.get_bar()? a. throw an exception? (NotFound? AlreadyDeleted?) b. return a NULL? Resolution: Revised Text: Actions taken: December 22, 2006: received issue Discussion: End of Annotations:===== il-OSG: 1jVqMMkVM1klVP3Hkd.UwOUfytj5AcA7y32tGUEbXa7fNPVODH2e0hNW_jyheT36fi.UJN1CZmjPOPVuy3PdFMEJ1aO9mZ_UpIyI2fxJVzrqxUCLb.5K9T4Gw1oY9Nj9sNqZh1l1VJPJ6iw- Date: Fri, 22 Dec 2006 16:41:54 -0600 From: Don Busch User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) To: issues@omg.org Subject: DDS 06-04-09, DLRL Issue: Request clarification of how to handle a dangling related object How should dangling relationships be handled? For example, suppose I have a Foo->Bar relationship. My Foo has a related Bar. 1. I clone the Foo and the Bar into the CacheAccess. 2. Someone deletes the Bar, but does not update the Foo's relationship. 3. I refresh the CacheAccess, which deletes my Bar in the CacheAccess, but my Foo thinks it's still related. What should happen when I call Foo.get_bar()? a. throw an exception? (NotFound? AlreadyDeleted?) b. return a NULL? -Don Busch -- ---------------------------------------------------------------- Don Busch, Principal Software Engineer and Partner Object Computing, Inc. (OCI) http://www.ociweb.com http://www.theaceorb.com http://jacorb.ociweb.com "Never let what you can't do get in the way of what you can do." - John Wooden X-YMail-OSG: e.ZBOkIVM1nPwPe9zGIIaltAsymr65TTXNx0L9QST1RkA5zCaJHaLNHsaKodYmr2mGiNhLNS0FbyzT0XZsDx6EK7Jmk7vkNKSMyKS2jXA_o3o8bbWq8- Date: Wed, 09 May 2007 13:20:04 -0500 From: Don Busch User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) To: data-distribution-rtf@omg.org Subject: [Issue 10546] I think this issue is resolved; I believe throwing AlreadyDeleted is the correct thing to do here. -- ---------------------------------------------------------------- Don Busch, Principal Software Engineer and Partner Object Computing, Inc. (OCI) http://www.ociweb.com http://www.theaceorb.com http://jacorb.ociweb.com "Never let what you can't do get in the way of what you can do." - John Wooden ---------------------------------------------------------------- ----------------------------------------------------------------