• Post Reply Bookmark Topic Watch Topic
  • New Topic

Updation of child table.

 
shan blossom
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using one parent table and one child table.While saving the parent table child table also get saved.ie.In parent table while saving one row,more than one row (say 3 rows) are saved in child table according to my project.The problem is while updating the record,If I am setting only 2 rows in child table means,it is not getting updated in the db.All the 3 rows which was inserted while saving the record are there in db.How to update the child table in this case??
 
Prabhu Venkatachalam
Ranch Hand
Posts: 502
Java jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using JDBC? or Any ORM frameworks like Hibernate?
 
shan blossom
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using ORM in hibernate only.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!