Hi
I have question about updating DB from transient object.This is my flow:
1. Fetch Object from DB, present SOME of it's fields on web-tier for editing
--end of http and hibernte session
2.On post - create transient instance of object, call hibernate update.
What happens is that my transient object has null values for properties that i don't want the user to modify. And, of-couse, these null values are persisted to DB over "real" values.
What is the right and common solution for this flow?
Do i have to "manually" merge properties of transient object to pesistent(select befor update) instanse ?
Thanks
|