Updating EO by inserting new EO and archiving the old EO - any suggestions?
Updating EO by inserting new EO and archiving the old EO - any suggestions?
- Subject: Updating EO by inserting new EO and archiving the old EO - any suggestions?
- From: Amiel Montecillo <email@hidden>
- Date: Mon, 25 Jan 2010 16:32:23 +0800
Hi List,
I am having a dilemma on how to best implement this kind of scenario.
I need the update process of an EO by creating an new EO with the updated values and archiving the old one. This EO has quiet a few to-many relationships that needs to be archived as well.
I am thinking of copying the existing values along with the relationship values to an NSDictionary and tie that to the form. Once the save action fires, inspect if there are any changed values and create a new EO with the updated values and archive the old one.
Can anyone suggest a better way of handling this?
Thanks,
Amiel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden