Well, this'll only appear if your PersonRole doesn't have CMP methods called get/setPersonID. Make sure it isn't get/setPersonId (lower-case 'd') or something like that. Let's see your Person code.
Also, use this unless you specifically want relation-table mapping in JBoss: @jboss.relation-mapping style="foreign-key" -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Nikolay Ganev Sent: Tuesday, July 15, 2003 5:13 AM To: xdoclet mailing list Subject: [Xdoclet-user] Problem again! hi all again problems with deploment of simple Entitiy Beans Relation Example on JBOSS. I already have 2 table in tha database and fields are correct. any comments on this exception: I Depend On: Depends On Me: org.jboss.deployment.DeploymentException: CMP field for key not found: field name=personID] this is description of the relationship * @return Person roles * * @ejb.relation name="Person-PersonRoles" * role-name="Person-has-many-PersonRoles" * target-ejb="PersonRoles" * target-role-name="PersonRoles-belongs-to-Person" * target-multiple="yes" * * * * * @jboss.relation * fk-constraint="true" * fk-column="personID" * related-pk-field="personID" * * -- Best regards, Nikolay mailto:[EMAIL PROTECTED] ------------------------------------------------------- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing & more. Download & eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user ------------------------------------------------------- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing & more. Download & eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
