Duplicate records
Duplicate records
- Subject: Duplicate records
- From: Yves Custeau <email@hidden>
- Date: Tue, 22 Jun 2004 09:16:27 -0400
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.