You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Stephen Ting <sc...@yahoo.com> on 2003/05/23 11:38:08 UTC
bidirectional 1:N mapping
Can anyone give me some hints on how to do bidirectional 1:N mapping in OJB PB
api?
objA <-1--------1:N -> objB
Re: bidirectional 1:N mapping
Posted by Thomas Mahler <th...@web.de>.
It's documented in tutorial3 and there is also sample code in the
testbed for this. Have a look a the mapping for Article and Product in
the repository_junit.xml.
Stephen Ting wrote:
> Can anyone give me some hints on how to do bidirectional 1:N mapping in OJB PB
> api?
>
> objA <-1--------1:N -> objB
>
>>From objA i can retrieve all the related objB and from objB i can retrieve the
> reference objA.
>
> any help are very much appreciated.
>
> Regards,
> Stephen
>
> __________________________________________________
> It's Samaritans' Week. Help Samaritans help others.
> Call 08709 000032 to give or donate online now at http://www.samaritans.org/support/donations.shtm
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>