Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate Update Problem

 
Setti Khan
Greenhorn
Posts: 15
Java jQuery MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
I Want to update a field NoofComments in parent table only after inserting comments in Child table. But only insertion operation is performing but not Updating. I am using SaveOrUpdate() to do this.


Thanks,
Naveen.
 
Madhav Turangi
Greenhorn
Posts: 16
1
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Naveen,

It is difficult to help without looking at the code. Will you be able to post the code, so that it will give us some more clue.
 
Setti Khan
Greenhorn
Posts: 15
Java jQuery MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry ,
According to company norms i don't have permissions to post the code . Is it possible to update with out using HashSet.

 
Setti Khan
Greenhorn
Posts: 15
Java jQuery MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Directly i wrote an SQL query to update the comments .

Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic