• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Duplicate records
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Duplicate records
      • From: Art Isbell <email@hidden>
    • Re: Duplicate records
      • From: David Griffith <email@hidden>
  • Prev by Date: initiate content of NSArray
  • Next by Date: EOModeler mysql on win2k
  • Previous by thread: Re: initiate content of NSArray
  • Next by thread: Re: Duplicate records
  • Index(es):
    • Date
    • Thread