user1982777
user1982777

Reputation: 19

What is Isolation in hibernate?

I'm not understanding the concept of isolation, in hibernate. Can anyone explain it, and present some possible usage cases?

Upvotes: 1

Views: 4305

Answers (2)

DarkHorse
DarkHorse

Reputation: 2770

Isolation in hibernate is similar to transactional isolations provided by database i.e the degree to which the data being updated is visible to other transaction taking place concurrently.Every database provide default isolation settings. There are isolation-levels. And hibernate provides you to set the isolation level for your application. Refer hibernate-doc for it

Upvotes: 1

TigOldBitties
TigOldBitties

Reputation: 1337

Taking for example MS Sql Server the isolation level describes the read strategy from the tables, that is telling the server if it should read uncommitted transactions, only committed ones, snapshot a.s.o. The settings vary depending on the type of sql used.

SET TRANSACTION ISOLATION LEVEL - MS SQL SERVER

Upvotes: 0

Related Questions