Investigate potential usage of wither-methods for setting bean values [DATACMNS-1239] #1678
There are a couple of places in the framework where we need to programmatically tweak the state of an entity for technical reasons. One of them is optimistic locking where we need to initialize the version property.
If an entity class is designed to be immutable, it's unexpected that we tweak the instance given. Assuming the class exposed explicit means to create new instances with a certain property set to a different value (e.g.
There are two main options how to achieve this:
The text was updated successfully, but these errors were encountered: