Re: Duplicating an EO and all its relationships
Re: Duplicating an EO and all its relationships
- Subject: Re: Duplicating an EO and all its relationships
- From: Ricardo Strausz <email@hidden>
- Date: Fri, 1 Aug 2003 15:16:18 -0500
Did you try something like
newEO = [oldEO copy];
(or the equivalent in Java)?
... is there some equivalent in Java??
Dino
On jueves, juli 31, 2003, at 13:49 America/Mexico_City, Albert Jagnow
wrote:
What I am trying to do is to create a duplicate copy of an EO
including
all the relationship objects and save the copies to the database. For
example I have a purchase request EO that has many purchase items, and
each item may have many accounts/grants associated with it (it is
slightly more complicated than this but that is the basic structure).
What I want to do is create a copy of the entire purchase request that
I
can save to the database. Everything would be the exactly the same in
the copy except for of course for the primary and foreign keys (which I
will let EOF create), and some timestamps, and descriptions which I
would set. This seems like it should be very easy, like only a few
lines of code, but I couldn't find an easy way to do it. Anyone have
any suggestions?
--Albert
This e-mail (including any attachments) is covered by the Electronic
Communications Privacy Act, 18 USC. 2510-2521. It is confidential and
may be legally privileged. If you are not the intended recipient, you
are hereby notified that any retention, dissemination, distribution, or
copying of this communication is strictly prohibited. Please reply to
the sender that you have received the message in error, and then delete
it. Thank you.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.