thx , after a few changes to the model it worked !!!
thx alot robert and lochlan !!
cheers !

Robert Walker wrote:
but I propagated the primary key and still got the same error , anyone had any problems like this before ?
Check you model. Your to-one relationship is not connected to the destination entitie's primary key. Simply checking "Propagates Primary Key" won't solve your problem. If you are attempting to create a one-to-one relationship between Schedule and Attempt then you will have a the to-one relationship in whichever entity is your "Source" will need to propagate it's primary key to the "Destination" entity. You will not propagate the primary key from the "Destination" entity back to the "Source" entity.

As a side-effect of this type of setup is that your "Destination" will have empty rows for every "Source" entity. I don't think most developers use this type of setup in EOF.

As a side note: I'm not really sure why Schedule <--------> Attempt would constitute a one-to-one relationship. Seems like it would be one-to-many, but since I'm not familiar with your model maybe it is.

On May 7, 2007, at 5:43 PM, Guilherme melo wrote:

hello all , I am trying to access a field in a to one mandatory relationship and i am getting the following error :
 java.lang.IllegalArgumentException: Unable to map destination Schedule
for relationship schedule in entity Attempt. To one relationships must
be joined on the primary key of the destination.
I googled about it and got the following answer  :
"Note: For to-one relationships, Enterprise Objects Framework doesn't support 
primary key to foreign key joins. The destination join attribute in a to-one relationship 
must be the destination entity's primary key. If you want To One relationship in both 
directions, you may want to consider a mandatory To One and Propagate Primary Key."

but I propagated the primary key and still got the same error , anyone had any 
problems like this before ?

thx in advance

-


\o/ Guilherme Melo , Moleque de Idéias Educação e Tecnologia Ltda
 |  Phone: 55-21-2710-0178 E-mail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
/ \ http://www.moleque.com.br _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected] <mailto:[email protected]>)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/robertwalker1%40mac.com

This email sent to [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>

--
Robert Walker
[EMAIL PROTECTED] <mailto:[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/guilherme%40moleque.com.br

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