I'm trying to update one column of a table using hibernate but I can not prevent the operation from overriding the entire table record. I have tried different options based on searches I've done on google and I just don't know what I'm missing. Can someone help me?
This is what I have so far:
Here is a snippet of my hibernate config file for the "detail" table:
Here is a snippet of my
jsp form:
Here is the snippet of my Controller that processes the form:
So when I
test the form it hits the mergeDetail method since the record already exists....
I understand that I could probably just pass the column I'm interested in changing instead of the entire Detail object. However, I'm doing this dynamically in which the jsp form where I define the "path" is not really hardcoded with the "summary" column. Instead I'm actually passing a variable in it's place so I don't have a handful of jsp forms, I can just use the same form and just change the path value.
Any suggestions?
Thank you.