Re: EOF Design Questions
Carl Lindberg <[email protected]> Sat, 10 Apr 2004 13:57:54 -0400
| Newsgroups | gmane.comp.web.webobjects.eof |
|---|---|
| Message-ID | <[email protected]> |
> 1. How best to clone an EO in an EC? > Create and insert a new EO, transfer state, ... I few years back I posted a mechanism to do this... it was written in ObjC but could be redone easily enough in Java. It copies all attributes except primary/foreign keys, and will deep-copy relationships marked cascade delete. Subclasses can override to alter behavior. It's a slightly more complicated version of what was proposed here recently. http://www.omnigroup.com/mailman/archive/webobjects-dev/2000-August/ 000744.html -Carl Lindberg