Re: Do entities require a primary key?
Re: Do entities require a primary key?
- Subject: Re: Do entities require a primary key?
- From: Chuck Hill <email@hidden>
- Date: Wed, 9 Dec 2009 15:12:52 -0800
Are the rows unique? If so, you can make a multi-column PK. EOF
needs _something_ to uniquely identify them if you want to make EOs
out of the data. You might also want to consider just raw SQL (raw
rows) and / or making a cache of these and avoiding the EO overhead.
Chuck
On Dec 9, 2009, at 3:04 PM, Johnny Miller wrote:
Hi,
I just purchased a database that does IP address to country
resolution. I'm reverse engineering the database into a Wonder
Framework and I realized that the single table in the database
doesn't have a primary key. WOLips doesn't like this and throws an
error stating the entity does not have a primary key.
Should I just create a primary key field and leave it blank? Or is
there a better alternative? This is going to be a read only database.
Thanks in advance,
Johnny Miller
Kahalawai Media Corp
http://www.kahalawai.com
_______________________________________________
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
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
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