Re: Wonder PK id in the EOModel
Re: Wonder PK id in the EOModel
- Subject: Re: Wonder PK id in the EOModel
- From: Guido Neitzer <email@hidden>
- Date: Thu, 20 Mar 2008 17:40:41 -0600
On 20.03.2008, at 17:17, Gustavo Pizano wrote:
leaving only the id as Pk will allow another Person to rgister with
the same document like this
id docuemnt phone address
1 123 555 XXXX
2 123 555 XXXX
and that would be an inconsistency no?
Why? If you don't want duplicates, add a unique constraint to the
database and handle the failures on insert/update.
It depends on your model whether this is valid or not.
And it is still considered "good style" to never use something with an
outside meaning as a pk. At least with EOF it makes your life much
easier.
cug
--
http://www.event-s.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