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

This email sent to [EMAIL PROTECTED]

_______________________________________________
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