elibroftw / blog.elijahlopez.ca

My own blogging site, since Medium is slow and centralized.
https://blog.elijahlopez.ca
3 stars 4 forks source link

https://blog.elijahlopez.ca/posts/java-javers-ignore-value/ #6

Closed utterances-bot closed 7 months ago

utterances-bot commented 1 year ago

How to Ignore Value Properties in Javers - ELL Blog

If you just want the solutions, look at the first and last code blocks. Read the whole article if you want some storytelling. Please comment if you have any feedback. At work one day, my task was to ignore certain properties of objects when they were being compared. Suppose the object, e.g. custom vertex, had properties { lastUpdated, color, x, y, z, comments }. If one was comparing objects of these properties, one might not want the fields “lastUpdated” and “comments” to be involved since they are metadata and not practical properties.

https://blog.elijahlopez.ca/posts/java-javers-ignore-value/