This content has been marked as final.
Show 3 replies
-
1. Re: [cmp-cmr] CMP field for key not found
lekkim Dec 29, 2003 2:18 PM (in response to shogun1234)The "CMP field for key" error signals that you are trying to refer to a CMP bean using a primary key field name that doesn't exist in the bean you are refering to.
E.g. don't try to refer to the Customer bean (primary key called getCustomerId()) using userId as the field name but use customerId as the field name. -
2. Re: [cmp-cmr] CMP field for key not found
lekkim Dec 29, 2003 2:20 PM (in response to shogun1234)Also - remember that the key field names are translated into method names and are case sensitive. If you key method is called getEmail() the key should be email and not EMAIL.
-
3. Re: [cmp-cmr] CMP field for key not found
shogun1234 Jan 2, 2004 12:38 AM (in response to shogun1234)"lekkim" wrote:
Also - remember that the key field names are translated into method names and are case sensitive. If you key method is called getEmail() the key should be email and not EMAIL.
yes, you're right. and the problem is occurred at the tag used via xdoclet.
for instance, the tag marks relation field originally using upperclass, EMAIL. that's the place where issuing error.
now it works fine. thanks your help, sincerely.
*
* @jboss:relation
* fk-column="email" -> EMAIL
* related-pk-field="email" -> EMAIL
* ...