• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem while updating the data

 
Keerthi Kumar
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

In my current module, I have a scenario where I need to update 3 different tables when the parent table is updated. When I update some data in the first table, data is getting updated in the db. But the corresponding record in the second table is being deleted, where as the data in the third table is getting updated properly.

I have used the bag element and also its a one - many relationship from A->B->C tables. I have used inverse="false" cascade="all,delete-orphan".

Request you to please help me out in this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic