• 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
How to fetch eo with a specific relationship
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to fetch eo with a specific relationship


  • Subject: How to fetch eo with a specific relationship
  • From: Louis Demers <email@hidden>
  • Date: Wed, 6 Feb 2008 09:43:03 -0500

Hi,

I have 2 EO, Part and Category. Part has a to-one relationship to Category. Category does not have a reverse to-many relationship.

Through a search/listing page of categories, the user can select a Category and I wish to present all of the parts from this category. I was hoping to not used the fields of the categories (like name, type...) to do the search, and really use the EO itself as the selection criteria. That lead meto consider using the primary key, but every book /messages I looked through discourages one to use primary keys/global ids. My guesses are:

1) that is a specific case where exposing/using primary keys is OK ?

2) setup the reverse to-many relationship ?

3) set querybindings (I use Display groups a lot) using the key name of the relationship and the EO as the object and let WO figured it out ? I seem to recall some message about this but could not find it or sample code for that.

4) use the fields of the category to form a complete specification. That seems unsuitable in case two categories are named the same (temporarily due to a mixup).


What is the real WOway of doing this.


Thanks in advance.




Louis Demers eng. www.obzerv.com


_______________________________________________ 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
  • Follow-Ups:
    • Re: How to fetch eo with a specific relationship
      • From: "Daniele Corti" <email@hidden>
  • Prev by Date: Re: Illegal Lock usage
  • Next by Date: Re: How to fetch eo with a specific relationship
  • Previous by thread: Re: NSPropertyListSerialization documentation error ?
  • Next by thread: Re: How to fetch eo with a specific relationship
  • Index(es):
    • Date
    • Thread