Search code examples
javers

Retrieving Affected Object from serialized data


Am working on finding the differences between two Json objects and storing the respective Diff in Json format(using Javers), so that can be retrieve later and presented to the user in a meaningful manner. Now, the challenge is, the Affected Object(where the change has happened) is not being serialized during serialization. I understand that it is not possible to retrieve the domain objects from Diff. Could see that the "affectedCdo" has been marked as transient not allowing to serialize it. Any other alternative for doing this?

Thanks, Ravi.


Solution

  • Restoring orginal domain objects from persisted snapshots will be possible when we implemen the shadows feature in JaVers. We are working on it. https://github.com/javers/javers/issues/133