Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
hibernate 3.2.5 GA
Name and version of the database you are using:
oracle 10g
Hi I have general question I have a unidirectional many-to-one mapping.
With child B depending on parent A.
I know that if parent A has a
<set name="childB" cascade="delete-all-orphan">
</set>
it will delete everything however, I want it so that if parent A is deleted in application, childB will also get deleted and i don't want parents to contain child mapping. (like no <set name="childB" in parent class).
Whats the best way to do this.