aspose file tools*
The moose likes Portals and Portlets and the fly likes Hibernate save or update is not working fine Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Hibernate save or update is not working fine" Watch "Hibernate save or update is not working fine" New topic
Author

Hibernate save or update is not working fine

Mohan Ramu
Greenhorn

Joined: Dec 26, 2012
Posts: 5
I have problem to utilize saveOrUpdate() method,

i have table user which is having columns name, address and id which is generated by hibernate Auto.

i wanna save first

(Mohan, BTM) == in DB (1, Mohan, BTM) it's working fine

i wanna update the same record in DB(1, Mohan, EC).

Instead of saving like this save or update method is creating one more row like

2 , mohan, EC.

please clarify my doubt .


 
wood burning stoves
 
subject: Hibernate save or update is not working fine