Hi,
I made some tests with Hibernate 3.1 on Oracle 10g. I concentared on relations one-to-many and reverse direction many-to-one. My questions are connected with the second order.
When I set in many-to-one any of values in cascade like: delete, delete-orphan. The result of deleting the master object was only setting the NULL value in foreign key field in detail record.
So, I'd like to achieve an action, where by deleting master record I also delete all detail records automatically.
What is correct set o attribute values of that?
Thanks for some advice
Krzysztof
|