• 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: Do entities require a primary key?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Do entities require a primary key?
      • From: Johnny Miller <email@hidden>
References: 
 >Do entities require a primary key? (From: Johnny Miller <email@hidden>)

  • Prev by Date: Do entities require a primary key?
  • Next by Date: Re: Do entities require a primary key?
  • Previous by thread: Do entities require a primary key?
  • Next by thread: Re: Do entities require a primary key?
  • Index(es):
    • Date
    • Thread