• 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: Ken Anderson <email@hidden>
  • Date: Wed, 24 May 2006 13:05:30 -0400

That error happens when the attributes you used to build the to-one relationship are not the same as the primary key of the destination. To one relationships must have the attributes identical. What attributes are you using to define the relationship?



On May 23, 2006, at 10: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

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

"I like the way this project has somehow, against all common sense, got itself made."
- Peter Jackson, "The Lord of The Rings"


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40anderhome.com


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
References: 
 >EOModler and Multiple Primary Keys (From: Owen McKerrow <email@hidden>)

  • Prev by Date: EOModler and Multiple Primary Keys
  • Next by Date: Re: EOModler and Multiple Primary Keys
  • Previous by thread: EOModler and Multiple Primary Keys
  • Next by thread: Re: EOModler and Multiple Primary Keys
  • Index(es):
    • Date
    • Thread