Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 3.0
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using: Postgres 8
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
I have the following in my TestDO.hbm.xml
Code:
<array name="operations" inverse="false" cascade="all-delete-orphan">
<meta attribute="use-in-tostring">false</meta>
<key column="testId"/>
<index column="hibernateIndex" type="int"/>
<one-to-many class="com.test.OperationDO"/>
</array>
I create TestDO object set it up to reference 5 different operations (OperationDO) and save it. Then I retrieve TestDO that is referencing those 5 operations. I remove one of them and update "TestDO".
I expected one of the operations to be removed in the appropriate table, but instead it's not removed and it just has "testId" field set to "null".
any ideas why?