Not able to use CustomComparator for a object in list #492
Labels
Comments
For now, CustomPropertyComparator compares only property values and not items inside collections. We need to check if it possible to use it as a collections Comparator. |
fixed in release 3.3.0, see https://javers.org/release-notes/ |
for example : javersBuilder.registerValue(BigDecimal.class, (a,b) -> a.compareTo(b) == 0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi
I want to compare two objects(of type Sample2) which have one list member of a custom object(of type sample). I wrote custom comparator for Sample class but javers code never hits the custom comparator.
For eg:
CustomComparator:
Main class:
Problem: My custom comparator is never bieng hit.
The text was updated successfully, but these errors were encountered: