I have a table with fields ID(primary key),Name and Address. how can i update the Name corrosponding to a particular ID,without loading that row from the table and then updating it. I want to be able to just specify the new Name value along with the corrosponding ID so that it would be done automatically. I have enabled autocommit.
an example code would be nice,as I’m new to hibernate and don’t wanna go deeply into createsession() and other things,just working on a project requiring quick and dirty solution 😀
I have a table with fields ID(primary key),Name and Address. how can i update
Share
using hql with your propertynames