I would like to know Why do isolation levels exists in spring or hibernate if these are concepts of database? Aren't those handled by database so that we need to explicitly specify them in the spring application? what is the reason behind it?
Asked
Active
Viewed 119 times
1 Answers
0
Transactions isolation levels are set per connection. They can even be defined per a particular transaction. But someone who starts the transaction needs to specify the isolation level.
In case of JDBC it would be: Connection#setTransactionIsolation()
. In your case this someone is Hibernate or Spring.

Stanislav Bashkyrtsev
- 14,470
- 7
- 42
- 45