Hello All 

I have a strange behaviour of a MtoN relation mapping when i try to delete
something . 

The relation is something like this 
A <-> B <-> C 

And his mapped like this :
 <class-descriptor class="A_Class" table="A">
 <collection-descriptor name="c" 
        element-class-ref="C_Class" 
        auto-update="true" auto-delete="true"  
        indirection-table="B"
        proxy="true">
                        <fk-pointing-to-this-class column="A_id"/>
                        <fk-pointing-to-element-class column="C_id"/>
        </collection-descriptor>

 <class-descriptor class="C_Class" table="C">
 <collection-descriptor name="a" 
        element-class-ref="A_Class" 
        auto-update="true" auto-delete="true"  
        indirection-table="B"
        proxy="true">
                        <fk-pointing-to-this-class column="C_id"/>
                        <fk-pointing-to-element-class column="A_id"/>
        </collection-descriptor>


My pbm is the following . When I change an element of A_Class and remove
some links on C_Class , the C_Class element are 
Also removed. 

This happen only when I set the proxy value to true. 
Looking in the code quicly : may be there is a pbm in the list Proxy which
has a RemovalAwareCollection which is removing object after the remove of
the MtoN relation .

May be my mapping is wrong or may be the pbm  is already corrected ...in
this case sorry .



B.R 
Thierry 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to