Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate Update Problem

 
Setti Khan
Greenhorn
Posts: 15
Java jQuery MySQL Database
  • 0
  • 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: 12
1
  • 0
  • 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
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Directly i wrote an SQL query to update the comments .

Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic