Re: Single Table inheritance and EM question
Re: Single Table inheritance and EM question
- Subject: Re: Single Table inheritance and EM question
- From: Guido Neitzer <email@hidden>
- Date: Wed, 20 Aug 2008 08:48:15 -0600
- Thread-topic: Single Table inheritance and EM question
Wild guess: are you maybe just seeing the relationships being resolved? Or
is it really getting all objects, when you ask for one without prefetching
any relationships?
cug
On 20.08.08 08:38, "William Hatch" <email@hidden> wrote:
> I should also note that there are three separate select statements
> being generated; one for each of the concrete types; it's not one
> select with some OR's in the where. Not sure if that helps shed light
> on this. Thanks again.
>
> On Aug 20, 2008, at 3:31 AM, William Hatch wrote:
>
>> First project using EM and single table inheritance, I've got an
>> abstract base entity, with three concrete sub types, I'm putting a
>> qualifier in the Basic Tab's Qualifier field in the form of
>> (summaryRangeType="hour"), etc for each of the three types,
>> obviously with different values for each. The column used for
>> differentiating the types, "summaryRangeType" is a class property.
>> There are some reflexive relationships between the the three sub
>> types, which are always used, but not constrained as mandatory.
>> Fetches to one are resulting in generated sql to all three types, as
>> if I'm fetching on the abstract parent, which I'm not. What am I
>> forgetting or not doing correctly in EM? Thanks.
>>
>>
>> Bill
>>
>>
>>
>>
>> _______________________________________________
>> 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