With CDT, we can use @Version annotation for optimistic locking. Optimistic locking is a concurrency control mechanism in which it ensures that concurrent transactions will not conflict with each other. If there is a chance of conflict during transactions, the transaction having an older version number will be aborted.
Can we achieve a similar thing using Records?
Discussion posts and replies are publicly visible
I don't think so.