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: David Avendasora <email@hidden>
- Date: Tue, 19 Nov 2013 14:00:52 -0500
Chuck is, of course, correct. From the classic, 2007 best-seller "WebObjects Enterprise Objects Programming Guide”:
<quote>
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.
-> • You can’t model inheritance hierarchies across different data sources.
• Australia is entirely peopled with criminals
• You can’t flatten attributes or relationships across data sources.
• Never get involved in a land war in Asia
• Enterprise Objects doesn’t support two-phase commit, so you have to be careful when a saving enterprise objects that are constituted from different data sources in a single invocation of EOEditingContext.saveChanges().
</quote>
Don’t go getting mad at me. That’s just what it says.
Dave
On Nov 19, 2013, at 1:22 PM, Chuck Hill <email@hidden> wrote:
> "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 increase their overall knowledge of WebObjects or who are trying to solve specific problems.
> http://www.global-village.net/gvc/practical_webobjects
>
> Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing Companies in B.C!
>
> Global Village Consulting ranks 44th in 25th annual PROFIT 500 ranking of Canada’s Fastest-Growing Companies by PROFIT Magazine!
>
> On 2013-11-19 6:01 AM, "Comm unity" wrote:
>
> 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 the application, the following exception appears:
>
> IllegalArgumentException: _buildNodeListWithParent: cannot do a deep fetch on entity '<SubEntity>' with parent '<ParentEntity>' because they are stored in different databases.
>
> Where <SubEntity> is the name of the subentity and <ParentEntity> the name of the parententity.
>
> Does anybody have an idea?
>
> Thanks.
>
> _______________________________________________
> 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
—————————————————————————————
WebObjects - so easy that even Dave Avendasora can do it!™
—————————————————————————————
David Avendasora
Senior Software Abuser
Nekesto, Inc.
_______________________________________________
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