Cannot update primary key
Cannot update primary key
- Subject: Cannot update primary key
- From: "Serge SMADJA" <email@hidden>
- Date: Tue, 26 Nov 2002 02:24:15 +0100 (MET)
Hi,
I'm trying to use D2W (WO 5.2/Openbase) on a small database I've generated from EOModeler. As long as my entities had integer primary keys, everything worked well. Then, I added a table with a varchar primary key which I made "visible". I can insert a new record in database but I cannot modify the primary key attribute without getting this error :
java.lang.IllegalStateException: cannot update primary-key 'myprimarykey' from '78439439700011' to '78787878787878' on object ...
What should I do to make this attribute writeable ? Looks like a common pitfall for WebObjects newbies but all the examples have hidden integer primary keys :(
Thanks
Serge Smadja
_______________________________________________
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.