Re: Bindings From 2 Entities - How?
Re: Bindings From 2 Entities - How?
- Subject: Re: Bindings From 2 Entities - How?
- From: "Jonathan Fleming" <email@hidden>
- Date: Wed, 05 Mar 2003 20:23:47 +0000
From: Chuck Hill <email@hidden>
To: "Jonathan Fleming" <email@hidden>, email@hidden,
email@hidden
Subject: Re: Bindings From 2 Entities - How?
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.
This is a table that only moderaters will be able to edit so I don't think
it will be such a problem, unless you think otherwise.
You never said what EO
EOQualifier qualifier =
EOQualifier.qualifierToMatchAllValues(queryBindings);
was fetching.
it's fetching TbNavPageContentPosition
Perhaps the key path you want goes the other way:
navPageName.name?
No, the path is tbNavPageContentPosition.tbNavPage.navPageName
Chuck
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
_________________________________________________________________
Use MSN Messenger to send music and pics to your friends
http://messenger.msn.co.uk
_______________________________________________
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.