Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
JaVers runtime error - diff for Set of ValueObjects is not supported #191
Recently i got this error,
can not handle managed/back reference 'defaultreference' in jackson for composite key
JsonManagedReference and JsonBackReference
But my situation is,
Can anybody help me with this issue?
I removed all the JsonManaged and JsonBackReference annotations and added only JsonIgonre in Child as below,
After doing this I got the below error,
11:39:59,712 ERROR SetChangeAppender:46 - could not diff Field Set Child1; //declared in: Parent, JaVers runtime error - diff for Set of ValueObjects is not supported
well, first, JaVers doesn't know anything about Jackson and its annotations
The error you see - 'diff for Set of ValueObjects is not supported' means that you cannot manage Sets of ValueObject in Javers.
The reason why JaVers doesn't support diff for Sets of ValueObjects is simple, we have no good idea how to do this :)
Imagine that you have two sets with ValueObjects.
true, new algorithm could detect only added/removed object.
Digest heuristic is not obvious, we could try simply stringify and join all properties. But many Classes dont have good value-based toString()...
Hm, I'd have thought you might just use object.equals, and delegate all the problems to the individual developers? We won't be able to track individual property changes, but since a changed value object is per definition a new value object that sort of makes sense?
Thats because many devs dont provide good equals() so we should not rely on it. We have