• 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
RE: Shared EC problems for a newbie
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Shared EC problems for a newbie


  • Subject: RE: Shared EC problems for a newbie
  • From: "Randy Wigginton" <email@hidden>
  • Date: Fri, 24 Feb 2006 11:59:35 -0500

Hello, I tried sending this mail earlier, but I never saw it come across.

I have a VERY SMALL table; literally, three rows, that holds status.
"Enabled", "Disabled", and "Missing".  These are associated with id's 0,1,
and 2.  Since I need to set other object's status, I cache these three
values by loadAllObjects and storing in a hashmap.  The table is marked in
EOModeler to share all objects.

I use these shared objects for quite awhile, doing something like this:
MyFoo f = new MyFoo();
MyStatus aSharedObject = myMap.get(statusString);
f.setStatus(aSharedObject);
ec.insertObject(f);
ec.saveChanges();

This code runs just fine for a long time, but eventually I get the error
message:
prepareForSaveWithCoordinator: Cannot save the object with globalID
_EOIntegralKeyGlobalID[APIMSNOrder (java.lang.Integer)121]. The row
referenced by this globalID was missing from the database at the time a
fetch was attempted. Either it was removed from the database after this
application got a pointer to it, or there is a referential integrity problem
with your database.

Since there are only three rows in the table, I'm quite confident it has
*NOT* been removed.  What am I doing wrong?  How can I properly do this?

 _______________________________________________
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

References: 
 >Re: Shared EC problems for a newbie (From: Art Isbell <email@hidden>)

  • Prev by Date: How to correctly share objects
  • Next by Date: Re: How to correctly share objects
  • Previous by thread: Re: Shared EC problems for a newbie
  • Next by thread: LDAP on tiger
  • Index(es):
    • Date
    • Thread