• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Cannot update primary key
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Cannot update primary key
      • From: Art Isbell <email@hidden>
  • Prev by Date: FOP PDF Output and WebObjects 5.2
  • Next by Date: Re: Cannot update primary key
  • Previous by thread: FOP PDF Output and WebObjects 5.2
  • Next by thread: Re: Cannot update primary key
  • Index(es):
    • Date
    • Thread