File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes Hibernate Update Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Hibernate Update Problem" Watch "Hibernate Update Problem" New topic
Author

Hibernate Update Problem

Setti Khan
Greenhorn

Joined: Jun 17, 2014
Posts: 15

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

Joined: Jun 18, 2014
Posts: 12
    
    1
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.


Madhav Turangi
Setti Khan
Greenhorn

Joined: Jun 17, 2014
Posts: 15

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

Joined: Jun 17, 2014
Posts: 15

Hi,
Directly i wrote an SQL query to update the comments .

Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate Update Problem