-
1. Re: Is self-reference CMR supported?
sheepe Feb 11, 2002 7:58 AM (in response to fred)I've made the same on yesterday, and yes, it seems like working. I've configured it with XDoclet, and the generated descriptor looks like this:
<ejb-relation>
<ejb-relation-name>Category-Categories</ejb-relation-name>
<ejb-relationship-role>
<ejb-relationship-role-name>category-has-parentcategory</ejb-relati
Many
<relationship-role-source>
<ejb-name>Category</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>parentCategory</cmr-field-name>
</cmr-field>
</ejb-relationship-role>
<ejb-relationship-role>
<ejb-relationship-role-name>parentcategory-has-categories</ejb-rela
One
<relationship-role-source>
<ejb-name>Category</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>categories</cmr-field-name>
<cmr-field-type>java.util.Collection</cmr-field-type>
</cmr-field>
</ejb-relationship-role>
hth,
Christopher -
2. Re: Is self-reference CMR supported?
fred Feb 11, 2002 7:26 PM (in response to fred)Thanks for the prompt response. I was using a pre-alpha JBoss 3.0 CVS build. I update to alpha and it now works.