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.