• 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: Paul Hoadley <email@hidden>
  • Date: Fri, 19 Aug 2011 09:37:14 +0930

On 18/08/2011, at 11:05 PM, Kevin Hinkson wrote:

> 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?

My suggestion would be that you don't.  Calling it a best practice isn't an arbitrary designation—there's an argument behind it.  And if you buy that argument (whatever it is) for not making primary keys class properties, then the same argument applies to creating qualifiers based on the primary key.  What does "not making a primary key a class property" mean if it doesn't mean "making the primary key inaccessible to the class"?

So if you've got a business or technical case for exposing the primary key, just do it.  It's only a best practice if you accept the argument behind it—maybe you have a genuine exception.


--
Paul.

http://logicsquad.net/


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

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