I am new in Java 8 and love the Compare Feature. But now I have special piece of code, nearly unreadable, in our old projects.
The program imports from another Database some fields for an Object to an table and if there is already a entry for it, it get´s a new version number.
The next part is selecting every entry for this customer and looking for entry´s with 2 versions, then i compares them and marks different fields and put the old entry of the older version behind it.
This is all done with many loops, an comperator and compareTo for 40 fields. Like I said, nearly unreadable. Is there a way in Java 8 like in this thread -> https://stackoverflow.com/questions/369512/how-to-compare-objects-by-multiple-fields but with marking of the difference?