Re: Duplicate records
Re: Duplicate records
- Subject: Re: Duplicate records
- From: Tony Becker <email@hidden>
- Date: Tue, 22 Jun 2004 11:00:00 -0400
If I understand the question correctly - create (open) a new order from
an existing (closed) order, then I think the original way is correct -
do it through EO.
If you clone() it in Java or write SQL for it, I think you run the risk
of mangling the Primary/Foreign Key stuff and/or getting EO out of sync
with the DB (always a bad thing).
On Jun 22, 2004, at 9:46 AM, David Griffith wrote:
Perhaps using the clone() method (of any java.lang.object) will help..
Dave.
Hello
Is there an easier way to duplicate database records using EOF.
I need to add the functionality to duplicate orders (and order items)
for
the client.
So far I do it this way:
1- Fetch the record using the EODisplayGroup
2- Copy the record in a new EOGenericRecord object
3- Do an insert on the DisplayGroup
4- Assign each Displaygroup attribute to the Generic Record attribute
5- Save the changes using the Editing Context
This seems cumbersome for such an advanced framework but I have not
found a
better way of doing it?
Any suggestions ??
Thanks !!!
_______________________________________________
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.
Tony Becker
Cell: 727 460 1891
If a man is talking in the forest, and no woman is around to hear him,
is he still wrong?
_______________________________________________
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.