Updation issue in child table using hibernate -


i have 2 tables, a & b having one-to-many relation.

for using list collection inside parent pojo.

the code of hbm file of a is:

    <bag name="uifunrecogniseschooldetaillist" cascade="all">         <key not-null="true" update="false">             <column name="uif_detail_state_code"></column>             <column name="uif_detail_district_code"></column>             <column name="uif_detail_town_code"></column>             <column name="uif_detail_ward_code"></column>         </key>         <one-to-many class="com.aises.pojo.uifunrecogniseschooldetails"/>     </bag> 

when insert new records in table data inserted without problem using saveorupate() method. when insert same records again update existing record in parent table (which right) insert new records in child table, wrong. should updated records in child table parent table. how can solve problem?

thanks


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -