Re: Error saving data to EO
Re: Error saving data to EO
- Subject: Re: Error saving data to EO
- From: David LeBer <email@hidden>
- Date: Mon, 11 Jul 2005 23:46:52 -0400
On 11-Jul-05, at 11:39 PM, Chuck Hill wrote:
Primary keys must _never_ be updated. They are what EOF uses to
uniquely identify the object.
Chuck
Yeah, what he said :-)
I would add that unless you absolutely have to (are tied to a legacy
model for instance) do not save "real" data in the pk. Make it a
database artifact only, hide it as a class property and let EOF
handle it for you. Move your real data to another attribute. Your
application will thank you.
On Jul 11, 2005, at 8:20 PM, Don Lindsay wrote:
Hello;
I have a single page that encounters an error when I try to save
changes. This is the only page in the application that has this
problem. I have included the error from the console, are primary
keys not allowed to be updated through the EO Model?
UsersWo, saving changes: cannot update primary-key 'registrati'
from '200500' to '200501' on object:{values = {registrati =
"200501"; rma = 0.0; tracking = 2.005E8; }; this = "<TechHelpSetup
d3e679 _EOVectorKeyGlobalID[TechHelpSetup (java.lang.String)200500,
(java.lang.Double)0.0,(java.lang.String) ,(java.lang.Double)
2.005E8]>"; } of entity: TechHelpSetup in databaseContext
Thanks,
Don
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net
This email sent to email@hidden
--
Practical WebObjects - a book for intermediate WebObjects
developers who want to increase their overall knowledge of
WebObjects, or those who are trying to solve specific application
development problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40codebase.ca
This email sent to email@hidden
--
;david
--
David LeBer
Codebase Software Systems
site: http://www.codebase.ca
blog: http://david.codebase.ca
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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