-
1. Re: CMR problem - key-fields not detected
mozer Apr 30, 2002 9:17 AM (in response to mozer)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) -
2. Re: CMR problem - key-fields not detected
dsundstrom Apr 30, 2002 10:42 AM (in response to mozer)It looks right to me. Try fiddling arround with it. Check the spelling, field-names etc.
-
3. Re: CMR problem - key-fields not detected
matt_hannay May 21, 2002 8:34 PM (in response to mozer)I am experiencing the same problem did you manage to find a solution ??
-
4. Re: CMR problem - key-fields not detected
mozer May 22, 2002 11:29 AM (in response to mozer)Yes, actually I did :-)
I did not have the line
@ejb:bean primkey-field="pk"
in my ejbdoclet tags. It is a class-level tag, and must be used in addition to the method level tag
@ejb: pk-field
(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.