Re: does EOEditingContext.refreshObject work?
Re: does EOEditingContext.refreshObject work?
- Subject: Re: does EOEditingContext.refreshObject work?
- From: Chuck Hill <email@hidden>
- Date: Sat, 20 Dec 2003 17:28:49 -0800
What does ec.committedSnapshotForObject(updatedObject) show? Does it
contain your unsaved changes? It sounds as if doing the refresh has
resulting in the committed snapshot containing the updated attributes.
This, obviously, would be a bug.
Chuck
At 06:43 PM 20/12/2003 -0500, Adam Ramadan wrote:
>Hi,
>
>I have an enterprise object which has been modified and before saving the
>changes I want to refresh the object in order to check one of its fields.
>After calling refreshObject(...) I see any changes to the field I'm
>interested in, and the changes that had been made to the enterprise object
>are still there, as expected from reading the JavaDoc. Unfortunately, the
>EOEditingContext.hasChanges() now returns false (it returns true prior to
>the refreshObject() call, and the object being refreshed is the only
>modified object in the context). Even if I modify the object again the
>EOEditingContext seems completely unaware, and the saveChanges method() does
>nothing.
>
>I haven't done anything fancy with my enterprise objects, they are what was
>generated from the EOModeler, and no methods have overridden or anything
>like that.
>
>Am I misunderstanding something? Is this a bug in WebObjects (I'm using
>version 5.2.2, Java 1.4.1_05, on Windows 2000)?
>
>Thanks very much for any help,
>Adam
>_______________________________________________
>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.