Hibernate will update only those objects to database where there is a change in any field value. For e.g. An object Test has three fields
Code:
class Test {
int a;
int b;
int lastModifiedTime;
}
if any of this has changed then Code:
session.saveOrUpdate()
will update the value.
But it doesnt make sense to update value to database when lastModifiedTime is the only value that has changed. Is there a way to tell hibernate that dont update the object if some fields (like
lastModifiedTime) has changed using some attributes in xml or otherwise??