-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: hibernate Update Query
PostPosted: Wed Feb 06, 2013 2:28 am 
Newbie

Joined: Wed Feb 06, 2013 1:03 am
Posts: 2
I have table with one primary key (auto increment) and three columns except that primary key column

S.No EmpId EmpName Month salary

1 1700 xxxx Jan 17000
2 1701 yyyy Jan 70000
3 1700 xxxx Feb 16750
4 1702 yyyy Jan 70000
5 1700 xxxx Mar 17000
6 1700 xxxx April 16000
This table contains details about employee names and his/her monthly salary details, I need to update the salary of employee xxx in Jan Month.

How can i do this in hibernate by using session.saveorupdate method?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.