How could I solve this problem that has been presented to me (I detail the following)
User 1performs a select to an entity "A" and obtains a correlative "1" and at the same millisecond and
User 2 performs a select to the same entity and obtains correlative 1 (given with the error) because it should take the 2 (assuming that the 1 was already taken).
How could I solve that problem
I was reading and an alternative would be to use concurrency obtimista, but I do not know how to apply that concurrency.
I need help.