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@hidden
/ \ http://www.moleque.com.br
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
|