• 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
Can't Update Primary Key
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can't Update Primary Key


  • Subject: Can't Update Primary Key
  • From: Hunter Hillegas <email@hidden>
  • Date: Tue, 20 Apr 2004 12:49:17 -0700

I have an issue with EOF that I can't figure out. I've seen some discussion of similar issues on the list but no solution...

WO 5.2.3/Java 1.4.2 Panther 10.3.3

Basically, EOF is trying to update my primary key but it hasn't changed.

1. Create entity.
2. Save entity.
3. Fetch entity.
4. Update entity.
5. Save entity.

Step 5 generates this exception:

java.lang.IllegalStateException: cannot update primary-key 'recNum' from '4' to '4' on object:{values = {recNum = 4; season = "Spring 2007"; summary = "sdfasdfasdf"; coverImageUri = "1300989293-5838.jpg"; issueDepartments = ("<IssueDepartment 9ce8f3 ...

If I restart the app I can perform steps 3-5 no problem... So... I'm sure you guys know the answer...

Why is EOF trying to update the primary key when it so clearly doesn't need to and more importantly, what can I do about it?

TIA,
H
_______________________________________________
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: Can't Update Primary Key
      • From: Ray Ackland <email@hidden>
  • Prev by Date: Re: WOMailDelivery outside the firewall
  • Next by Date: Re: WOMailDelivery outside the firewall
  • Previous by thread: Re: WOMailDelivery outside the firewall
  • Next by thread: Re: Can't Update Primary Key
  • Index(es):
    • Date
    • Thread