Please take a look at the attached thread from the xdoclet list. Any
chance JBoss can do without needing the empty <key-fields/> element? If
it's not there, JBoss creates extraneous columns in my tables.
Yes, I know this is an xdoclet bug (I posted it there), but maybe JBoss
should be graceful when not seeing a key-fields element and assume it to
being the same as an empty one?
Finally, I know that in production, you wouldn't want JBoss to be
creating your tables for you, but I like it for early development.
Thanks,
David
--- Begin Message ---
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
>
> ---------------------
> David Ward
> [EMAIL PROTECTED]
> http://www.dotech.com
>
>
> _______________________________________________________________
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>
> _______________________________________________
> Xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
--
---------------------
David Ward
[EMAIL PROTECTED]
http://www.dotech.com
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
--- End Message ---