does EOEditingContext.refreshObject work?
does EOEditingContext.refreshObject work?
- Subject: does EOEditingContext.refreshObject work?
- From: "Adam Ramadan" <email@hidden>
- Date: Sat, 20 Dec 2003 18:43:27 -0500
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.