Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 2.1
Mapping documents:
ClientClass.java
<set name="clientClassNames" inverse="true" cascade="all-delete-orphan">
<key column="CLSSID"/>
<one-to-many class="com.hli.prism.classes.domain.ClientClassName"/>
</set>
ClientClassName.java
<many-to-one name="clientClass"
class="com.hli.prism.classes.domain.ClientClass"
column="CLSSID"
not-null="true"/>
Code between sessionFactory.openSession() and session.close():
session.saveOrUpdate(clientClass);
Full stack trace of any exception that occurs:
Name and version of the database you are using:
Hypersonic
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
I have a parent-child relationship between ClientClass and ClientClassName with following declaration
Problem Faced
In my web layer, I fetch the data and display it on the screen. User unselects some of the ClientClassName rows and select some new ClientClassName rows. While saving, hibernate creates inserts rows for the new ClientClassName but does not delete the unselected ClientClassName dereferenced from the collection.
Appreciate your help to resolve this issue.