Hello all
I have a big pbm ...
I'm using a M-TO-N relation something like:
<collection-descriptor
name="persons"
collection-class="org.apache.ojb.broker.util.collections.ManageableArrayList
"
element-class-ref="org.apache.ojb.broker.Person"
auto-retrieve="true"
auto-update="false"
auto-delete="false"
indirection-table="PERSON_PROJECT"
>
<fk-pointing-to-this-class column="PROJECT_ID"/>
<fk-pointing-to-element-class column="PERSON_ID"/>
</collection-descriptor>
My problem is when i update a project after removing some reference on some
personne the personne are deleted.
After looking in obj internally , i see that ojb use a
RemovalAwareCollection for keeping the personnes list in the projet.
After the collection update ( in storeCollection ) the PB call the method
afterStore in the RemovalAwareCollection .
This method call delete on the removed elements ( the referenced elements
not the links ... ) .
I tried to used a proxy , i still have the problem .
In fact i have the problem on all collection in my repository ( the
auto-delete='false' does not work also when updating objects ).
Is somebody could help me ?
May be the Armin's patch is enough , i 'll test it .
B.R
Thierry