Owns destination and other relationship constraints ...
Ashley Aitken <[email protected]> Wed, 14 Apr 2004 15:35:01 +0800
| Newsgroups | gmane.comp.web.webobjects.eof |
|---|---|
| Message-ID | <[email protected]> |
Howdy All, My understanding of relationships that own their related objects in EOF is that objects are (automatically) deleted (in Java and, as a result of EOF, from the database) when they are removed from a relationship. Two questions: 1. How does one move an object from one aggregate to another? Does it just work, to remove it from one aggregate and add it to another, for example, in code, or will this cause a problem. 2. If you have a relationship set as "owns destination" *must* the reverse relationship be mandatory and cascade or deny delete? Optional and nullify or no-action sound problematic. Thanks, Ashley. -- Ashley Aitken Perth, Western Australia mrhatken at mac dot com