Re: Unable to map destination
Re: Unable to map destination
- Subject: Re: Unable to map destination
- From: Lachlan Deck <email@hidden>
- Date: Tue, 8 May 2007 08:06:17 +1000
Hi there,
On 08/05/2007, at 7:43 AM, 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.
There's something wrong in the model. Do you have something like the
following?
entities Schedule <-->> Attempt... both entities have their own
primary key of course (e.g., id) but Attempt has an additional
foreign key: scheduleId. Is that what you have?
Then the Book's 'publisher' to One relationship joins on Schedule.id,
Attempt.scheduleId.
with regards,
--
Lachlan Deck
_______________________________________________
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