Re: Cloning objects in WO?
Re: Cloning objects in WO?
- Subject: Re: Cloning objects in WO?
- From: David Avendasora <email@hidden>
- Date: Thu, 25 Sep 2008 15:08:16 -0400
Until this is integrated into ERGenericRecord, the best solution is to
impliment PracticalWO's EOCopyable in your project.
If I actually bought Chuck a beer for every time I swore I would
because it makes copying EOs just work so easily, well, Chuck wouldn't
be sober for a long, long time.
Yes, this is assuming a normal state of Chuck-soberness/ity/ocity.
Dave
On Sep 25, 2008, at 1:44 PM, David LeBer wrote:
On 25-Sep-08, at 1:34 PM, Greg Smith wrote:
Does anyone have a nice method for Cloning an object that has to-
one and to-many relationships. I assume I would need to clone each
object, break all it's current relationships, then re-apply them
with the clones. This seem tedious.
Has anyone come up with a better solution or a nice method for
doing this? Serialization may be a way but that may carry the
GlobaID? Any suggestions or help would be appreciated.
Entity cloning is a deep subject that has been touched on several
times on the list. i.e. Your assumptions might be appropriate for
you but may not be for someone else.
I believe that the best generic implementation of EO cloning has to
be Chuck's EOCopyable stuff in his Practical WebObjects book.
;david
--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site: http://codeferous.com
blog: http://davidleber.net
profile: http://www.linkedin.com/in/davidleber
twitter: http://twitter.com/rebeld
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden