Hi,
I am running into an issue where Hibernate automatically calls update on my domain object whenever I retrieve from the database and the use a setter method to change a value. My understanding is that I should be able to set the value and then explicitly call update on the domain object in order for it to update in the dB. Please let me know what is wrong.
Thanks for your help,
anicad
Here is my code snippet:
//retrieves the appropriate record from the db based on the id
Person adult = (Person)getService().getPerson("34");
//upon setting of this ID, "update" is called to persist this to the db. //Why?
adult.setFamId(new Long("887"));
|