Hello,
In a project I have to write a lottery function.And I find it best use ISOLATION LEVEL SERIALIZABLE mode to prevent concurrent problem.
After reading cuba platform’s documention, I can’t find a method to achieve this.
How can I set Transaction Isolation Level programmly?
Option 1: mark required service methods with @Transactional(isolation = Isolation.SERIALIZABLE)
Option 2: If you have the app datasource defined in context.xml you can try to set it in the datasource descriptor: