Skip to main content

Optimistic Locking

If you need to prevent concurrent changes from overwriting each other, you can add a version field.

This is a ValueField with type Integer or Long and option isVersion that keeps a version of an instance. When updating the instance in the database, the version will be checked to see if any other changes have been made since reading the current version.

Option
isVersion Field

This is a version field. The version will be updated on modification. This prevents that data is overwritten by outdated data.

<options>
<isVersion/>
</options>