I use java serialization to save my java objects into files. I would like to implement a new system where I only save the object if any changes have been made to it. Is there any java built in option to detect if an object changed during the execution of the program?
Or the only way to detect this is by using a flag that will change if any of the setters of the object is called?
Thanks