by
207 11
0
5
212k
3
Top 1% !
Pearl of Wisdom
Easy-to-find
Specified
OpenSource
Popularity: 7304th place
Architecturex86_64
JVMjre8
OSWindows

Hibernate JPA - programmatically set the transaction isolation level for the current connection

Hibernate JPA - programmatically set the transaction isolation level for the current connection
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/1412511/Hibernate-JPA---programmatically-set-the?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
entityManager = entityManagerFactory.createEntityManager(); Session session = (Session) entityManager.getDelegate(); session.doWork((Connection connection) -> { connection.setTransactionIsolation( Connection.TRANSACTION_READ_COMMITTED); });
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus