It is sometimes useful to avoid increasing the version number even if a given property is dirty (particularly collections). You can do that by annotating the property (or collection) with
@OptimisticLock(excluded=true).
More formally, specifies that updates to this property do not require acquisition of the optimistic lock.