Re: Duplicate records
Re: Duplicate records
- Subject: Re: Duplicate records
- From: David Griffith <email@hidden>
- Date: Tue, 22 Jun 2004 15:46:50 +0200
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.