Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 3.2
A question about cascading . . .
Let's say I have a table "A" which maps to class "A" and
a table "B" which maps to class "B"
Their relationship is one-to-many, that is A can have many B's.
Table and class B contains idA, a foreign key to A.
Now let's say I delete a record from A and I want the corresponding idA in B to be set to null. How should I set the cascade option here?
<bag name="BList">
<key column="idA"/>
<one-to-many class="B"/>
</bag>
Thanks
Eric