Re: Bindings From 2 Entities - How?
Re: Bindings From 2 Entities - How?
- Subject: Re: Bindings From 2 Entities - How?
- From: Chuck Hill <email@hidden>
- Date: Wed, 05 Mar 2003 12:14:36 -0800
At 08:02 PM 05/03/2003 +0000, Jonathan Fleming wrote:
>>
>>Use key paths rather than just keys. E.g., "tbNavPage.navPageName",
>>assuming that the to-one relationship's name is "tbNavPage".
>
>OK, with this done, I'm missing one other linking / key path solution
>because I get this error :
>
>sqlStringForKeyValueQualifier: attempt to generate SQL for
>com.webobjects.eocontrol.EOKeyValueQualifier (navPageName = 'Home') failed
>because attribute identified by key 'navPageName' was not reachable from
>from entity 'TbNavPageContentPosition'
>
Sounds like the to-one from TbNavPageContentPosition to TbNavPage is either
not modelled, or not done correctly. However, modelling back pointing
relationships from lookup tables to the objects using them can be a real
drag on performance.
You never said what EO
EOQualifier qualifier = EOQualifier.qualifierToMatchAllValues(queryBindings);
was fetching. Perhaps the key path you want goes the other way:
navPageName.name?
Chuck
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.