Hi,
I would like to know how to update single column of a table using Hibernate.
What I do is I get the data from the data base using Restrictions and then I update the column that I want to using
Code:
session.update(object)
. Why I was doing like this is because if I have only that value that I intend to update in the bean the other remaining values vanish.
But I assume there should some other mechanism where in in the bean I set the value that I want to update and Hibernate updates only those values instead of all.
Would you please tell me how to do that?