This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance 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