Re: Horizontal inheritance mismatch between WebObjects 5.4 and 5.3 [ was: SQL generation doesn't conform to entity inheritance]
Re: Horizontal inheritance mismatch between WebObjects 5.4 and 5.3 [ was: SQL generation doesn't conform to entity inheritance]
- Subject: Re: Horizontal inheritance mismatch between WebObjects 5.4 and 5.3 [ was: SQL generation doesn't conform to entity inheritance]
- From: Mike Schrag <email@hidden>
- Date: Thu, 3 Feb 2011 08:24:17 -0500
It will fix SQL .... Not sure about the other one.
Sent from my iPhone
On Feb 3, 2011, at 7:11 AM, Dev WO <email@hidden> wrote:
> When I look at ERXModel, I only find
> er.extensions.ERXModel.useExtendedPrototypes
>
> I'm not sure that's what your talking about.
>
> Is this supposed to fix the SQL generation from EntityModeler or prevent the bug at runtime (when there's no external name for parent entity)?
>
> Xavier
>
> On 3 févr. 2011, at 12:39, Mike Schrag wrote:
>
>> I believe you have to opt in to erxmodel (which gives you erxentity).
>>
>> Sent from my iPhone
>>
>> On Feb 3, 2011, at 2:20 AM, Dev WO <email@hidden> wrote:
>>
>>> Hello Lachlan,
>>>
>>>> On 03/02/2011, at 8:59 AM, Mike Schrag wrote:
>>>>
>>>>> i still would like to see what entity.primaryKeyRootName returns for each ... i don't recall what the impl was in 5.4.3 and I don't have it checked out at the moment, but i'm pretty sure that method is the only thing that matters here.
>>>>
>>>> The impl in 5.4.3 is wrong. Essentially 5.4.3 introduced a regression, which I recall checking in a fix for in wonder, and I believe it's fixed in 5.4.3.1 :) like this:
>>>> if (parent is abstract) {
>>>> return my external name.
>>>> }
>>>>
>>>> Which is just wrong. This was particularly a problem for Vertical Inheritance where various fields ought to have resolved to the parent entity's table (but didn't).
>>>>
>>>> I've never tested horizontal inheritance but you can fix it by:
>>>> a) subclassing EOEntity and overriding primaryKeyRootName etc, or better
>>>> b) use Wonder and if Horizontal Inheritance is a problem, fix it there for all :)
>>>
>>> I'm using Wonder, I would have hoped whatever 5.4 bugs would have been fixed already in this Wonder-ful frameworks:)
>>>
>>> I'm still digging right now.
>>>
>>> Xavier
>>>
>>>>
>>>> with regards,
>>>> -
>>>>
>>>> Lachlan Deck
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> 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
>>>>
>>>
>>> _______________________________________________
>>> 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
>>
>
_______________________________________________
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