Add Optimistic Concurrency Control support for ORM