Re: Re: Optimization - Share All Objects -> Register Database Context?
Re: Re: Optimization - Share All Objects -> Register Database Context?
- Subject: Re: Re: Optimization - Share All Objects -> Register Database Context?
- From: email@hidden
- Date: Thu, 11 Aug 2005 16:23:00 +1200
Hi Ian;
Thanks. I set cache in memory a long time ago, hoping it would have
the effect I am now trying to achieve. For this application, read
only is fine because I just set the values in the DB with SQL, but
if I want to write a small application for this (for localization),
does this mean it won't work with this model?
Perhaps a good way to get around this is to make another version of
the model where these entities are not cached and make a small D2W
application around them for editing? Or... just accept they have to
come to you to get the reference data modified. :-)
[2005-08-11 13:41:40 EST] <WorkerThread13>
java.lang.IllegalArgumentException: EOEditingContext:
initializeObject: attempt to initialize object with global ID
_EOIntegralKeyGlobalID[Title (java.lang.Integer)2] that exists in a
shared context via a non-shared context. The object model may have
a relationship from a shared entity to a non-shared entity. Disable
or remove the relationship from the model.
You can probably appreciate that I can't see your model so it's hard
to ascertain what the problem is, but essentially *all* entities
marked as "read-only" / "cache in memory" are going to reside in the
"shared editing context" and you are not allowed to have an outbound
relationship from the shared editing context to a regular editing
context. So go through all of the entities you have marked as "read-
only" / "cache in memory" and remove all their relationships that
would extend from the shared editing context to a regular editing
context at runtime.
cheers.
___
Andrew Lindesay
www.lindesay.co.nz
+64-21-47-0929
_______________________________________________
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