Hi,
I want that my mapping files contains this code cascade="delete" for each set, but also only for sets! Which function of the DelegatingReverseEngineeringStrategy is the one where I can change that? Or is there no function which will help me. If not, how can I do this then?
I also read something about a default-cascade attribute. I think I could use this too. But here again is the same question. How can I set it automatically when I"m generating the files.
Hibernate version: 3.2 beta 8
Name and version of the database you are using: Oracle 10g
What I have:
Code:
<set name="atoms" inverse="true">
<key>
<column name="MOLECULE_ITEM_ID" precision="22" scale="0" not-null="true" />
</key>
<one-to-many class="de.fhg.scai.bio.csr.io.database.hibernate.DatabaseAtom" />
</set>
What I want:
Code:
<set name="atoms" inverse="true" cascade="delete">
<key>
<column name="MOLECULE_ITEM_ID" precision="22" scale="0" not-null="true" />
</key>
<one-to-many class="de.fhg.scai.bio.csr.io.database.hibernate.DatabaseAtom" />
</set>