On 20-Mar-08, at 5:35 PM, Gustavo Pizano wrote:

Well I started to create the EOModel and the questions began to arise.

I c that Wonder gives me an id as Pk, but in the model I have te follwoing, something similar to what David showed in the screencast

(Using the folloing names just to follow the project statement)
Table : Person
Atributes: document
                  phone
                  address

so if there is and id as PK, shouldnt I put the document as PK as well? to avoid data repetitions?

I'm not sure I understand you Gus.

If you have:

        Entity: Person                  Table: Person
                id (marked as pk)       -->          id (defined as primary key)

Then id should uniquely identify a Person in the database. No need to make a compound primary key.

Is  that what you are asking?

;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://codeferous.com
blog: http://davidleber.net
profile: http://www.linkedin.com/in/davidleber
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to