db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakob Braeuchi <jbraeu...@gmx.ch>
Subject Re: [NEW FEATURE] Adding, deleting MtoN implementors
Date Fri, 09 May 2003 17:54:30 GMT
hi leandro,

the mn implementors are for non-decomposed m:n relationships and contain 
only the keys of the related objects.
if you want to model addition info in your USER_ROLE you have to use a 
decomposed m:n relationship.
there are samples for both kinds in the distribution.

jakob

Leandro Rodrigo Saad Cruz wrote:

>Hi Jakob.
>
>Suppose I have USER, USER_ROLE and ROLE.
>
>USER_ROLE is the indirection table used on User collection descriptor.
>How do I add or remove Roles to some user ?
>
>
>On Fri, 2003-05-09 at 14:05, Jakob Braeuchi wrote:
>  
>
>>hi leandro,
>>
>>the mn implementors are handled by ojb and afik there's no need to do it 
>>manually.
>>
>>jakob
>>
>>Leandro Rodrigo Saad Cruz wrote:
>>
>>    
>>
>>>Hi all. How do I add or delete MtoN implementors ?
>>>
>>>Can we do it ? it this a need ?
>>>
>>>Maybe something like ?
>>>
>>>MtoNImplementor mton = new
>>>MtoNImplementor(leftClass,leftId,rightClass,rightId);
>>>
>>>broker.store(mton);
>>>broker.delete(mton);
>>>
>>>Any comments ?
>>>
>>>
>>> 
>>>
>>>      
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
>>For additional commands, e-mail: ojb-dev-help@db.apache.org
>>
>>
>>    
>>


Mime
View raw message