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

Re: Qualifier With Primary Key


  • Subject: Re: Qualifier With Primary Key
  • From: Michael Kondratov <email@hidden>
  • Date: Thu, 18 Aug 2011 09:40:20 -0400

Use EOUtilities.faultWith..... method.


Michael

Sent from my iPad

On Aug 18, 2011, at 9:35, Kevin Hinkson <email@hidden> wrote:

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
References: 
 >Qualifier With Primary Key (From: Kevin Hinkson <email@hidden>)

  • Prev by Date: Qualifier With Primary Key
  • Next by Date: Re: Qualifier With Primary Key
  • Previous by thread: Qualifier With Primary Key
  • Next by thread: Re: Qualifier With Primary Key
  • Index(es):
    • Date
    • Thread