• 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
Qualifier With Primary Key
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Qualifier With Primary Key


  • Subject: Qualifier With Primary Key
  • From: Kevin Hinkson <email@hidden>
  • Date: Thu, 18 Aug 2011 09:35:17 -0400

Hi,
Since the best practice is to not make primary keys class properties, how do I then create a qualifier that is based on the primary key of an EO?

Simple Eg: A blog site has nice, short bookmark-able URLs like http://website.com/blog?id=5 where 5 is the primary key. When the user hits that page then I would need to lookup the blog entry by the primary key.

I've looked at accessing primary keys via (http://wiki.objectstyle.org/confluence/display/WO/EOF-Using+EOF-Primary+Keys) but it only solves accessing the primary key for an EO you already have.

What's the best approach in this situation? 


— K.R.H.

PS: I encountered WO/ERXDisplayGroup and ERXFlickrBatchNavigation for the first time yesterday. I think I'm in love.

 _______________________________________________
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: Qualifier With Primary Key
      • From: Paul Hoadley <email@hidden>
    • Re: Qualifier With Primary Key
      • From: Pascal Robert <email@hidden>
    • Re: Qualifier With Primary Key
      • From: Michael Kondratov <email@hidden>
  • Prev by Date: Re: Bundle Name Problem
  • Next by Date: Re: Qualifier With Primary Key
  • Previous by thread: Re: Bundle Name Problem <solved>
  • Next by thread: Re: Qualifier With Primary Key
  • Index(es):
    • Date
    • Thread