Hi!

Debugging again the M:N relationships, so we can work as expected with
proxies I've found the following bug (line 815, PersistenceBrokerImpl) that
make an Item be deleted even if we set auto-delete, auto-update=false in
non-decomposible:

                if( col instanceof ManageableCollection)
                {
                    ((ManageableCollection) col).afterStore(this);
                }

it should not be (but auto-update == auto-delete)

                if( col instanceof ManageableCollection)
                {
                  if( !cds.isMtoNRelation() || ( cds.getCascadeDelete() ||
cds.getCascadeStore() ) )
                    ((ManageableCollection) col).afterStore(this);
                }

???

Or we should specify in collection descriptor explicit that this collection
is not ManageableCollection (appear that by default the collection is
RemovalAwareCollection if we don't specify anything).

Thanks,

Edson Richter



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.490 / Virus Database: 289 - Release Date: 16/6/2003

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to