Hello,
When I have two objects (Q, QD) which are related through a indirection
table, and I delete Q the records in QD's table aren't always removed. If
I've done something with the collection (to have the collection loaded) then
the records are deleted, if I haven't they aren't. Looking at the code it
would appear that the indirection table records are deleted first and then
the collection is gotten from Q. The problem is that since I'm using a
CollectionProxy, if the proxy hasn't been loaded it is to late to load it
since the indirection table records are now gone.
repository snippet ---
<class-descriptor class="Q" table="Q"
<field-descriptor id="1" name="id" column="Q_ID" primarykey="true"
autoincrement="true">
</field-descriptor>
<collection-descriptor name="discounts" element-class-ref="QD"
indirection-table="Q_QD_L" proxy="true" auto-update="true"
auto-delete="true">
<fk-pointing-to-this-class column="Q_ID"/>
<fk-pointing-to-element-class column="D_ID"/>
</collection-descriptor>
</class-descriptor>
<class-descriptor class="QD" table="QD">
<field-descriptor id="1" name="id" column="D_ID" primarykey="true"
autoincrement="true">
</field-descriptor>
</class-descriptor>
-----------------------
Alan
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>