'Is Hibernate Interceptor.onSave invoked when calling .save on unchanged object

Assuming that I have an object Foo and the code like:

foo.setFirstName("First");
foo.setLastName("Last");
foo.save()

and I have a Hibernate interceptor that do some work in onSave method, will this method be invoked if the value of foo properties already were set to the above values?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source