persistence
persistence copied to clipboard
Add @OptimisticLock(excluded = true)
Adding this or something similar would make optimistic locking a lot more useful.
Another suggestion would be to make: LockModeType.NONE on and em.find(id, ..., LockModeType.NONE) actually skip the version increment for a given update.