Beginner |
|
Joined: Sat Mar 13, 2004 4:00 pm Posts: 32
|
I have a one-to-one mapping between two objects with cascade=all set on the parent object. When I delete the parent object, the child object is deleted; but if I de-reference the child object from the parent I don't see a delete of the child object. I read in the docs that to get this behavior I need to use "all-delete-orphan" but this is not allow (by the DTD) for one-to-one mappings. Is this expected behavior ?
Thanks in advance,
Rich
Hibernate version: 2.1.6
Mapping documents:
<one-to-one
name="floatTerms"
class="BondFloatTerms"
cascade="all"
access="field"
/>
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using:
Oracle
Debug level Hibernate log excerpt:
|
|