You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to get the difference between two simple objects? #210
Let's say I have two simple objects and I need to know if there is a difference between them and if there is I need to know where and I also need to know the previous value of that field and the new value.
Let's get this as an example:
Person person1 = new Person();
person1.setName("Freddy");
person1.setAge(22);
Person person2 = new Person();
person2.setName("Christoph");
person2.setAge(22);
Activity
kissss commentedon Aug 16, 2019
You can do this
you should read https://java-object-diff.readthedocs.io/en/latest/user-guide/
kissss commentedon Aug 16, 2019
@franzisk
luongbaotin7777 commentedon Jan 13, 2021
hi Bro, how about for child Object into parent object changes? please help me, thank bro very much.!
zaknafein83 commentedon Jul 27, 2022
not work for me, i copy/paste your code.
Could be because i use lombok