• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Bindings From 2 Entities - How?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Bindings From 2 Entities - How? (From: "Jonathan Fleming" <email@hidden>)

  • Prev by Date: Re: Bindings From 2 Entities - How?
  • Next by Date: Re: deployment newbie question?
  • Previous by thread: Re: Bindings From 2 Entities - How?
  • Next by thread: Re: Bindings From 2 Entities - How?
  • Index(es):
    • Date
    • Thread