Re: Horizontal inheritance between different models and different databases.

2013-11-20 Thread Chuck Hill
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? Then I readed this http://lists.apple.com/archives/webobjects-dev

Re: Horizontal inheritance between different models and different databases.

2013-11-20 Thread David Avendasora
Hi, On Nov 20, 2013, at 4:38 AM, Comm unity wrote: > An empty fault could not be created because the object's class could not be > determined (e.g. the GID is temporary or it is for an abstract entity). Note that last bit. Is it possible that when you were trying to use inheritance that you

Re: Horizontal inheritance between different models and different databases.

2013-11-20 Thread Comm unity
Some more informations: I checked if the two Entities have the same external type, they have. Then I readed this http://lists.apple.com/archives/webobjects-dev/2008/Nov/msg00571.html I get the following output context from model of parententity: com.webobjects.eoaccess.EODatabaseContext@7a4fe91e

Re: Horizontal inheritance between different models and different databases.

2013-11-20 Thread Comm unity
Thanks guys. Yesterday I found the same information in a short note inside the EOModeler documentation ( https://developer.apple.com/legacy/library/documentation/WebObjects/UsingEOModeler/Introduction/Introduction.html#//apple_ref/doc/uid/TP30001018-CH201-TP1 ) So I tried a different approach. The

Re: Horizontal inheritance between different models and different databases.

2013-11-19 Thread David Avendasora
Chuck is, of course, correct. From the classic, 2007 best-seller "WebObjects Enterprise Objects Programming Guide”: There are, however, a few limitations when using multiple data sources in an application. They include: • Within an EOModelGroup, all entity names must be unique. ->

Re: Horizontal inheritance between different models and different databases.

2013-11-19 Thread Chuck Hill
"cannot do a deep fetch on entity … with parent … because they are stored in different databases." IIRC EOF does not support inheritance across databases. Chuck -- Chuck Hill Executive Managing Partner, VP Development and Technical Services Practical WebObjects - for developers who want to inc

Re: Horizontal inheritance between different models and different databases.

2013-11-19 Thread Paul Yu
All I know is there is a rule for Cross DATABASE relationships are not a good thing. You will need to look up exactly why. Paul On Nov 19, 2013, at 9:01 AM, Comm unity wrote: > Hey guys, > I try to model an inheritance between two different models and two databases. > > I have the parent enti

Horizontal inheritance between different models and different databases.

2013-11-19 Thread Comm unity
Hey guys, I try to model an inheritance between two different models and two databases. I have the parent entity modeled in "model1" and stored in "database1" and the subentity in "model2" and "database2". The subentity has additional attributes and additional relations. Now, when I try to run t