How to use optimistic lock with version mapping