It seems that there is a bug in JBoss Relations handler that's not
recognizing relations with only a jboss:target-relation tag.

Here is my sourcecode javadoc:

        /**
         * @ejb:interface-method view-type="local"
         * @ejb:relation
         *   name="AF-AFItem"
         *   role-name="af-tem-afitens"
         *   target-ejb="AFItem"
         *   target-role-name="afitem-pertence-af"
         * @ejb:value-object
         *   type="Collection"
         *   relation="external"
         *   compose="com.tld.af.value.AFItemValue"
         *   compose-name="Item"
         *   members="com.tld.af.interfaces.AFItemLocal"
         *   members-name="Item"
         * @ejb:transaction type="Required"
         *
         * @jboss:target-relation
         *   related-pk-field="id"
         *   fk-column="afpr_af_id"
         */
        public abstract Collection getItens();

Here is the generated relationship:

        <ejb-relation>
          <ejb-relation-name>AF-AFItem</ejb-relation-name>
          <foreign-key-mapping/>
          <ejb-relationship-role>
                 
<ejb-relationship-role-name>afitem-pertence-af</ejb-relationship-role-name>
                  <key-fields/>
          </ejb-relationship-role>
          <ejb-relationship-role>
                 
<ejb-relationship-role-name>af-tem-afitens</ejb-relationship-role-name>
                  <key-fields/>
          </ejb-relationship-role>
        </ejb-relation>


It seems it's not picking up the @jboss:target-relation tag.


-- 
Ja ne,
   Pazu
   mailto: [EMAIL PROTECTED]

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to