Hi, I have one class (Class1 )which have reference to another class (Class2).... so whenever i do saveorupdate(Class1). it updates it and also enter the value in table of class2. but the old value still remains in class2... Below is my hbm.xml file..
<?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >
cascade option works for many-to-one mapping. Please provide a clear explanation of your parent object, associated child object and what is the problem when you save or update your parent object. You might have explained but it will be nice if you explain clearly.