Updating primary key value
Updating primary key value
- Subject: Updating primary key value
- From: Benjamin Adair <email@hidden>
- Date: Mon, 27 Sep 2004 10:12:29 -0500
Morning all.
I, understandably, am getting errors attempting to update the primary key of an EO. This is a situation where the PK is a meaningful attribute, yet must be user modifiable. (I am fitting a WO app to an existing system that drives our web site. Changing it to work with WO is not possible -nor should it be required in my idealist's world. Ah, the life of the idealist..)
What have others done to work around this? Turning off the PK attribute in the EOModel gives errors were EOAccess expects the entity to have a PK. The only solution that comes to mind is to watch for when the user has modified the PK and manually insert what is essentially a brand new row and delete the old. Is there a simpler solution? If it's there in the API, I'd appreciate a quick pointer where to look, though I didn't see anything obvious from what I've seen so far.
Thanks!
Ben
--
Benjamin Adair
Central Office Database Programmer/Analyst
Cancer & Leukemia Group B
Phone: 773-702-6731
Fax: 312-345-0117
Email: email@hidden
Web: http://www.calgb.org/
_______________________________________________
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