I should add that I'm not very experienced with DB work, and that I have tried moving the key field to the other side of the relation, since I'm not sure where they should be. But the error remained the same.
(@jboss:relation vs. @jboss:target-relation)
It looks right to me. Try fiddling arround with it. Check the spelling, field-names etc.
I am experiencing the same problem did you manage to find a solution ??
Yes, actually I did :-)
I did not have the line
in my ejbdoclet tags. It is a class-level tag, and must be used in addition to the method level tag
(needed to add a space between "ejb:" and "pk-field", because otherwise it was interpreted as the ":p" smiley)
on the setter and getter for the primary key field. Substitute "pk" for whatever the name of the field of you pk is. This solved my problem.