Concurrent edits
@Version
field helps prevent concurrent updates of the same record. Instead of adding a int version
field to all entities, we can use
@Version // Used for locking
@Column(name = "modified_date")
@NotAudited
@Temporal(TemporalType.TIMESTAMP)
// @LastModifiedDate // Not required?
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
private Date modifiedDate;