Re: Wonder PK id in the EOModel
Re: Wonder PK id in the EOModel
- Subject: Re: Wonder PK id in the EOModel
- From: Mike Schrag <email@hidden>
- Date: Thu, 20 Mar 2008 19:43:44 -0400
Yes the document its inmutable, so Iwill put documentID as the PK
and take out the id auto generated, I was wondering if after I need
that documentID for any reason to show in a UI will I be able to
get it easly? my mind map is that i will have to fetch a Person
given a documentID ( which is unique) ..
EOUtilities.objectWithPrimaryKeyValue(...)
<unrelated-to-wo-comment>
I don't know if the names in this model were given to you as part of
your assignment, but as an aside, naming is very important in software
development. Like I said, I don't know the meaning of the attributes
in your model, but "document" seems to me to be a misleading name for
the primary key of an entity named Person. Common primary keys names
would be "id" or "personid" (or "person_id" if that style floats your
boat). "documentID" implies (to me) that this is the id of the
document associated with this person ... That would be the name I
would expect to see as the foreign key to a Document entity on a Person.
</unrelated-to-wo-comment>
ms
_______________________________________________
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