Re: Horizontal inheritance between different models and different databases.
Re: Horizontal inheritance between different models and different databases.
- Subject: Re: Horizontal inheritance between different models and different databases.
- From: Chuck Hill <email@hidden>
- Date: Wed, 20 Nov 2013 19:35:01 +0000
- Thread-topic: Horizontal inheritance between different models and different databases.
On 2013-11-20 3:22 AM, "Comm unity" wrote:
Some more informations:
I checked if the two Entities have the same external type, they have.
I don't understand, what does that mean? Are you referring to the type of the PK and FK?
I get the following output
context from model of parententity: com.webobjects.eoaccess.EODatabaseContext@7a4fe91e
context from model of subentity: com.webobjects.eoaccess.EODatabaseContext@1f3a34af
Same?
Not same context.
If they are in different databases, they MUST have a different EODatabaseContext.
So there are not the same context objects. Chuck said in the other thread, that this may cause the problem.
Only when they are supposed to be in the same database.
So how can I make my application use the same EODatabaseContext-Objects for the two different models. Or is it correct, that there are two different objects, because the models use different databases?
Yes, that is correct. That is not your problem. "the object's class could not be determined" Is the parent entity's model getting loaded? Is its class on the class path?
Chuck
|
_______________________________________________
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