Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Portals and Portlets
Hibernate save or update is not working fine
Joined: Dec 26, 2012
Dec 27, 2012 02:53:56
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 .
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: Hibernate save or update is not working fine
unique id generation for all DB vendors
SpringBatch: 'update' method in ItemStream and roll back in case of exception
updating rows in table error
Do you have a common save/update/delete method in your app?
Help HIGHLY needed with one-to-one mapping error
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013