Re: Qualifier With Primary Key
Re: Qualifier With Primary Key
- Subject: Re: Qualifier With Primary Key
- From: Paul Hoadley <email@hidden>
- Date: Sat, 20 Aug 2011 10:51:16 +0930
Hi Kevin,
On 19/08/2011, at 9:33 PM, Kevin Hinkson wrote:
> The general consensus seems to be don't use primary keys in the way I described, use another unique identifier/slug etc. But if one really, really has to; then the following are available:
Actually, my advice was subtly different. The "best practice" which advises you not to expose primary keys doesn't exist in a vacuum—there's an argument behind it. If you think you've found a counter-argument, then why beat yourself up by (a) not exposing the primary key as a class property and then (b) using workarounds to subvert (a)? Just expose the primary key and move on. Whether or not you've really found a decent counter-argument is a separate question.
--
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