I am attempting to implement CustomComparators for certain classes. The first question I have is how to return back multiple ValueChanges in my CustomComparator. I seem to only be able to return back a single ValueChange on that object when more than one field might have changed. Additionally, I can't figure out how to get Javers to generate a diff for objects that appear as fields in the class my CustomCommparator is overriding. Example below:
I have the following classes defined below where we have a Person owning a Store that has an Item they sell there.
public class Person
public Store store
public class Store
public String name
public Item item
public String location
public class Item
public String name
Question: 1. How can I implement a CustomComparator for Store such that it creates two ValueChanges: one for name and one for location. 2. How can I use that same CustomComparator to get Javers to also do a diff on item? Thanks!