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 17:52:35 -0400
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
Entity Modeler just has some enhancements when it sees that you are
using Wonder. The automatic "id" column generation is just one of
them. If you have some other primary key, you can delete the default
one, or rename it if you want.
(Using the folloing names just to follow the project statement)
Table : Person
Atributes: document
phone
address
I don't know what "document" is relative to a Person in your model,
but it sounds suspiciously NOT like a primary key of Person. Maybe
that's a FOREIGN key to a document table? Every entity in EOF must
have one (or more) primary keys, and those primary keys must be
_immutable_. "document" sounds neither like a candidate key nor does
it sound immutable, but you'd have to make that call given the better
knowledge of your model.
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