1:1 and 1:N between two ejb's works fine. The only difference
is in the <relationship> tags where you describe the second
bean in the relationship.
For a dependent:
<multiplicity>many</multiplicity>
<role-source>
<dependent-name>Address</dependent-name>
</role-source>
For an ejb:
<multiplicity>many</multiplicity>
<role-source>
<ejb-name>Contact</ejb-name>
</role-source>
The <dependent-name> and <ejb-name> should obviously match
the names of the <dependent-name> and <ejb-name> of the
dependent and ejb definitions (respectively).
-tim
> -----Original Message-----
> From: Randahl Fink Isaksen [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 21, 2001 7:48 AM
> To: Orion-Interest
> Subject: EJB 2.0 CMP features of Orion
>
>
> Has anyone tried out OR-mapping of 1-1 relationships and 1-n
> relationships
> between two EJBs? I have seen Jim Archer's fine tutorial
> about EJBs having a
> 1-1 or 1-n relationship to a *dependent object*, but is the same thing
> possible between two EJBs?
> I know the web site states that Orion 1.2.9 does NOT support n-m
> relationships, but is 1-1 or 1-n supported in the latest
> release, and is the
> support for 1-1 and 1-n in accordance with the specification?
>
> Randahl
>
>
