geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gianny Damour <>
Subject Re: EJB Relationship Mapping Names
Date Thu, 28 Jul 2005 03:00:39 GMT
On 28/07/2005 1:01 PM, Aaron Mulder wrote:

>On Wed, 27 Jul 2005, Jeremy Boynes wrote:
>>I believe there are certain scenarios where multiple relationships can 
>>exist between a pair of entities and there is no other way to tell them 
>	Well if this was true, then our code is broken, because it ignores 
>those fields.
>	But in truth, I believe that the cmr-field is unique -- it 
>wouldn't ever make sense to have the same cmr-field listed in more than 
>one relationship, right?  We currently require that at least one of the 
>ejb-relationship-roles in the ejb-relation includes a cmr-field, which I 
>think is also OK as how could you have relationship if neither side had a 
>CMR field?
This was exactly my reasoning when this was implemented. At least one 
role defines a CMR field and based on this later and the role source we 
can infer the other one. BTW, this is why we need the 
foreign-key-column-on-source optional element...



View raw message