• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Hibernate Update Problem

 
Greenhorn
Posts: 15
jQuery MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 16
1
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
jQuery MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
jQuery MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Directly i wrote an SQL query to update the comments .

Thanks.
 
reply
    Bookmark Topic Watch Topic
  • New Topic