You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Jeremy Boynes (JIRA)" <de...@geronimo.apache.org> on 2005/07/28 18:46:19 UTC

[jira] Commented: (GERONIMO-827) Change CMR mapping name elements to descriptions

    [ http://issues.apache.org/jira/browse/GERONIMO-827?page=comments#action_12317104 ] 

Jeremy Boynes commented on GERONIMO-827:
----------------------------------------

EJB supports non-navigable relationships that still require management by the container. These need to be mapped somehow and naming the relationship is one way of identifying them (the ID attribute is another). If we don't support these there is a bug in OpenEJB's mapping capabilities.

Here's a somewhat contrived example:

<relationships>
  <!-- father-child relationship -->
  <ejb-relation>
    <ejb-relationship-role>
      <multiplicity>One</multiplicity>
      <relationship-role-source>
        <ejb-name>Person</ejb-name>
      </relationship-role-source>
    </ejb-relationship-role>
    <ejb-relationship-role>
      <multiplicity>Many</multiplicity>
      <relationship-role-source>
        <ejb-name>Person</ejb-name>
      </relationship-role-source>
    </ejb-relationship-role>
  </ejb-relation>

  <!-- mother-child relationship -->
  <ejb-relation>
    <ejb-relationship-role>
      <multiplicity>One</multiplicity>
      <relationship-role-source>
        <ejb-name>Person</ejb-name>
      </relationship-role-source>
    </ejb-relationship-role>
    <ejb-relationship-role>
      <multiplicity>Many</multiplicity>
      <cascade-delete/>
      <relationship-role-source>
        <ejb-name>Person</ejb-name>
      </relationship-role-source>
    </ejb-relationship-role>
  </ejb-relation>
</relationships>


> Change CMR mapping name elements to descriptions
> ------------------------------------------------
>
>          Key: GERONIMO-827
>          URL: http://issues.apache.org/jira/browse/GERONIMO-827
>      Project: Geronimo
>         Type: Improvement
>   Components: OpenEJB
>     Versions: 1.0-M4
>     Reporter: Aaron Mulder
>      Fix For: 1.0-M5

>
> Change the ejb-relation-name and ejb-relationship-role-name elements in openejb-jar.xml at:
> openejb-jar/relationships/ejb-relation/ejb-relation-name
> openejb-jar/relationships/ejb-relation/ejb-relationship-role/ejb-relationship-role-name
> To be description elements instead, since they're not actually used by the server and are for documentation purposes only.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira