• 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: Wonder PK id in the EOModel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Wonder PK id in the EOModel (From: Gustavo Pizano <email@hidden>)
 >Re: Wonder PK id in the EOModel (From: David Holt <email@hidden>)
 >Re: Wonder PK id in the EOModel (From: Gustavo Pizano <email@hidden>)

  • Prev by Date: Re: Wonder PK id in the EOModel
  • Next by Date: Re: Wonder PK id in the EOModel
  • Previous by thread: Re: Wonder PK id in the EOModel
  • Next by thread: WOWebServiceRegistrar.registerWebService not working at all
  • Index(es):
    • Date
    • Thread