Re: ClassCastException com.webobjects.eocontrol._EOWeakReference
Re: ClassCastException com.webobjects.eocontrol._EOWeakReference
- Subject: Re: ClassCastException com.webobjects.eocontrol._EOWeakReference
- From: Art Isbell <email@hidden>
- Date: Tue, 21 Jun 2005 14:15:02 -1000
If you haven't already done so, I suggest reading the best
shared object documentation I've been able to find:
http://developer.apple.com/documentation/LegacyTechnologies/
WebObjects/WebObjects_4.5/System/Documentation/Developer/WebObjects/
DeltaDoc/EOF.html#CBGCHAIA
On Jun 21, 2005, at 1:12 PM, Brendan Duddridge wrote:
CategoryClickHistory newHistory = (CategoryClickHistory)
EOUtilities.createAndInsertInstance(ec, "SSCategoryClickHistory");
newHistory.setCategory((Category)
EOUtilities.localInstanceOfObject(ec, category));
1. Category is in the EOSharedEditingContext
"every standard editing context has access to the objects in a shared
editing context as if the objects were local"
So you don't need to fault a shared object into a standard editing
context using EOUtilities. localInstanceOfObject(); doing so will
likely cause problems.
Aloha,
Art
_______________________________________________
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