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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to [email protected]

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