This is a real problem, though sourceforge says "works for me." To prove it, I uploaded a test case to the bug. Please check it out.
rinkrank, Sorry for the direct (bcc) email, but I didn't know how else to bring your attention to this if you're didn't say "monitor" on the bug. You asked for the javadoc, but I thought a full test case would be better. Thanks, David -- David Ward wrote: > I added a sourceforge bug for this: > http://sourceforge.net/tracker/?func=detail&aid=563717&group_id=31602&atid=402704 > > > -- > > David Ward wrote: > >> XDoclet version: CVS June 2, AM. >> JDK version: Sun Linux JDK 1.4.0 >> Ant version: 1.5Beta2 (had same problem with beta1) >> JBoss version: jboss-3.0.0_tomcat-4.0.3 >> >> -- >> >> XDoclet creates an ejb-relation block that is missing an empty >> key-fields element, which JBoss requires. >> >> This is what I got: >> >> <ejb-relation> >> <ejb-relation-name>Group-Album</ejb-relation-name> >> <foreign-key-mapping/> >> <ejb-relationship-role> >> >> <ejb-relationship-role-name>Album-Has-Group</ejb-relationship-role-name> >> </ejb-relationship-role> >> <ejb-relationship-role> >> >> <ejb-relationship-role-name>Group-Has-Albums</ejb-relationship-role-name> >> <key-fields> >> <key-field> >> <field-name>key</field-name> >> <column-name>GROUP_KEY</column-name> >> </key-field> >> </key-fields> >> </ejb-relationship-role> >> </ejb-relation> >> >> This is what I want (note the <key-fields/> in Album-Has-Group): >> >> <ejb-relation> >> <ejb-relation-name>Group-Album</ejb-relation-name> >> <foreign-key-mapping/> >> <ejb-relationship-role> >> >> <ejb-relationship-role-name>Album-Has-Group</ejb-relationship-role-name> >> <key-fields/> >> </ejb-relationship-role> >> <ejb-relationship-role> >> >> <ejb-relationship-role-name>Group-Has-Albums</ejb-relationship-role-name> >> <key-fields> >> <key-field> >> <field-name>key</field-name> >> <column-name>GROUP_KEY</column-name> >> </key-field> >> </key-fields> >> </ejb-relationship-role> >> </ejb-relation> >> >> Without the empty key-fields element, JBoss doesn't recognize my >> definitions of [what rel. columns named what should go where], and, to >> use technical terms, "everything gets screwy." >> >> Thanks, >> David _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
