Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Updating primary key value



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:
http://lists.apple.com/mailman/options/webobjects-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.