Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
3.2.6
Mapping documents:
annotations 3.3.0
Name and version of the database you are using:
mysql 5.0
Is there a way to configure hibernate so that a save to the database happens only if it is necessary.
I have a process that retrieves xml data from a third party.
loads an object from the database that may have been previously instantiated.
sets the fields with the new data from the xml file.
and then saves the object.
I assumed that if the object did not change that hibernate would not issue a save to the database, but it does.
Is there a way to configure hibernate so that the save occurs only if one of the fields in the object is different?
Thanks
Kal