• 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: Gustavo Pizano <email@hidden>
  • Date: Thu, 20 Mar 2008 18:27:46 -0500

Im changing id to documentID...  to make a better name..
On Mar 20, 2008, at 4:52 PM, Mike Schrag wrote:

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.

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) ..

Gus


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

_______________________________________________ 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
  • Follow-Ups:
    • Re: Wonder PK id in the EOModel
      • From: Mike Schrag <email@hidden>
References: 
 >Wonder PK id in the EOModel (From: Gustavo Pizano <email@hidden>)
 >Re: Wonder PK id in the EOModel (From: Mike Schrag <email@hidden>)

  • Prev by Date: Re: MySQL JDBC Connect Error
  • Next by Date: Re: Wonder PK id in the EOModel
  • Previous by thread: Re: Wonder PK id in the EOModel
  • Next by thread: Re: Wonder PK id in the EOModel
  • Index(es):
    • Date
    • Thread