How to ensure that the hibernate version number stays immutable in a javascript client?
问题 I have a Rest backend with Java and Hibernate and im using Optimistic Locking with the version property. For concurrency control, this version property must go to the client and again to the server with post request. But, in a javascript client i lose control over the integrity of this property, for example: A client "A" requests the resource 1. A client "B" requests the same resource. The server responds with resource 1 version 1 to both clients (in their respective responses) The client "A"