• 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: EO does not register change with EC??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EO does not register change with EC??


  • Subject: Re: EO does not register change with EC??
  • From: Jonathan Rochkind <email@hidden>
  • Date: Mon, 21 Jul 2003 10:58:04 -0500

After checking all of the great thing's Chuck mentions, you may need to take account of a weird and hard to describe bug in current versions of EOF that some of us have noticed....

Are any of your attributes Boolean attributes? That is, does storedValueForKey("attributeName") return a capital-b Boolean for any attributes in the entity you are concerned with? There are two ways I know of for this to happen:

1) Your attribute has an internal type of Integer, and a value type of 'c'.
2) Your attribute has an internal type of Integer, and a blank value type, but the cover method with the same name as the attribute in the entity's .java class has a return type of Boolean or boolean. In this case, EOF will automatically convert to Boolean for you before returning from storedValueForKey.


If a Boolean attribute like this is present, I have noticed some cases where EOF messes up and refuses to save changes, in the way you are describing. (Although I more often encounter it with a change to a to-one relationship than with a change to a simple attribute).

So it's worth changing these attributes to NOT have Boolean returned from storedValueForKey, and see if the problem goes away. If nothing else obvious is presenting itself.

--Jonathan

At 02:24 PM 7/19/2003 -0700, Chuck Hill wrote:
Things to check:

1. Are you angering EOF?
http://wodev.spearway.com/cgi-bin/WebObjects/WODev.woa/wa/Main?wikiPage=EOFC
ommandments

2. Are you calling super() in all overridden methods?

3. Do any of your property names conflict with names in the
EOEnterpriseObject interface?


Chuck



At 03:07 PM 19/07/2003 -0400, Bob Stuart wrote:
>I have a strange problem. I have a single EO that no matter how I
>call methods changing any one of several different NSTimestamp
>attributes the atrribute appears changed but the EC will not save
>state. Even calling takeStoredValueForKey the EO does not appear to
>be changed in the EC. ec.updatedObjects() will be empty.
>I know it's in the EC since I fetch it.
>
>Other EO's seem to be fine.
>
>Any Ideas?
>--
>Bob Stuart
>_______________________________________________
>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.
>

--

Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
_______________________________________________
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.
_______________________________________________
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.

References: 
 >EO does not register change with EC?? (From: Bob Stuart <email@hidden>)
 >Re: EO does not register change with EC?? (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: Changing values of an array of objects.
  • Next by Date: Re: Can't modify EO objects! ARGH! =(
  • Previous by thread: Re: EO does not register change with EC??[solved]
  • Next by thread: Printing from server
  • Index(es):
    • Date
    • Thread