Hi all
I have a simple map with collection in form:
Code:
.
.
<bag name="biblFiles" table="BIBL_FILES" inverse="false" cascade="all-delete-orphan" lazy="false" >
<key column="id_object" not-null="true" update="false" />
<one-to-many class="com.indexbg.sp.library.db.BiblFiles"/>
</bag>
.
.
every time when deleting parent object , children objects deleted 1 by 1.
So i decided to optimize this end trying
Code:
.
.
<bag name="biblFiles" table="BIBL_FILES" inverse="false" cascade="all-delete-orphan" lazy="false" >
<key column="id_object" not-null="true" update="false" />
<one-to-many class="com.indexbg.sp.library.db.BiblFiles"/>
[b]<sql-delete>DELETE FROM bibl_files where id_object=?</sql-delete> [/b]
</bag>
.
.
but this DELETE statement is never executed.
Where my mistake?
Sorry for my poor English.