• 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: EOModler and Multiple Primary Keys
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EOModler and Multiple Primary Keys


  • Subject: Re: EOModler and Multiple Primary Keys
  • From: Mark Morris <email@hidden>
  • Date: Wed, 24 May 2006 13:03:57 -0500

Hello Owen,

Are you joining on both TopicID and TrackingObjectID? Since that is the primary key of TopicName, you must use both to uniquely identify a row to get a to-one relationship.

To join on more than one attribute in EOModeler.app, first join on one attribute (click Connect), then the other (and click Connect).

That warning message is a good one, and usually indicates something is actually configured incorrectly in your model.

Regards,
Mark

On May 23, 2006, at 9:28 PM, Owen McKerrow wrote:

Hi All

We are trying to create a EOModel of a 3rd party database which I cannot change.
When modelling the relationship between SubTopicName and TopicName and then trying to save
we get the following error


Relationship TopicName in entity SubTopicName is a to-one relationship, but its destination
attribute(s) does not match the primary key of the destination entity.


We think we have a problem because of the multiple primary keys in the tables for Topic and SubTopicName
Can anyone please help provide a solution to this problem?


Tables and Primary key information and schema is attached.


<EOModelerProblem.doc>

Owen McKerrow
WebMaster, emlab
Ph : +61 02 4221 5517
http://emlab.uow.edu.au
_______________________________________________
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


References: 
 >EOModler and Multiple Primary Keys (From: Owen McKerrow <email@hidden>)

  • Prev by Date: Re: EOModler and Multiple Primary Keys
  • Next by Date: Re: Newbie: File upload w/Direct Actions and added parameters
  • Previous by thread: Re: EOModler and Multiple Primary Keys
  • Next by thread: Another take on a NY WebObjects Users Group
  • Index(es):
    • Date
    • Thread