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 ABOU LINA <am...@gmail.com> on 2006/02/10 12:55:15 UTC

MAPPING BIDIRECTIONAL NAVIGATION 1:1 ??? ojb 1.0.3

Hi,

i give you this sample example :

in case  A<---->B  [1:n] :
     the mapping of this bidiractional navigation is guaranted by the use of
inverse-foreignkey :

     Mapping A classe :
     ----------------------------------------------------

    <collection-descriptor
       name="allB"
       element-class-ref="B"
    >
       <inverse-foreignkey field-ref="aId"/>
    </collection-descriptor>

    Mapping B class :
    ------------------------------
      <reference-descriptor
         name="a"
         class-ref="A"
      >
         <foreignkey field-ref="aId"/>
      </reference-descriptor>

so in case of  A<---->B  [1:1] i need a bidirectional navigation !!!!!
how to use ????

my config :
  1. ojb 1.0.3
  2. i use the broker (PB-API)


Thanks a lot ....