Hi,
The XDoclet generated jbosscmp-jdbc.xml looks incorrect as I see. The
ejb-relationship-role-name should not be the same as I know. I've provided
these 2 tags in the two beans:
@ejb:relation name="Manufacturer-Product"
role-name="manufacturer-has-products"
@ejb:relation name="Manufacturer-Product"
role-name="product-belongsto-manufacturer"
And the generated jbosscmp-jdbc.xml's according part is:
--
<relationships>
<ejb-relation>
<ejb-relation-name>Manufacturer-Product</ejb-relation-name>
<!-- one to many -->
<foreign-key-mapping>
<ejb-relationship-role>
<ejb-relationship-role-name>product-belongsto-manufacturer</ejb-relationship-role-name>
<fk-constraint>false</fk-constraint> <!-- there wont be a fk here -->
<foreign-key-fields />
</ejb-relationship-role>
<ejb-relationship-role>
<ejb-relationship-role-name>product-belongsto-manufacturer</ejb-relationship-role-name>
<fk-constraint>true</fk-constraint>
<foreign-key-fields>
<foreign-key-field>
<field-name>id</field-name>
<!-- here I should do something to generate property elements, but I have nfi
what they are for... -->
</foreign-key-field>
</foreign-key-fields>
</ejb-relationship-role>
</foreign-key-mapping>
</ejb-relation>
</relationships>
--
Also, the nfi-comment about property elements makes no sense for me.
Christopher
--
.Digital.Yearning.for.Networked.Assassination.and.Xenocide
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user