Hi !
In an application using MySQL, I used the following source code to change the isolation level
Code:
EntityManager em=this.getEntityManager();
SessionImpl obj =(SessionImpl) em.getDelegate();
JDBCContext jdbcContext = obj.getJDBCContext();
Connection con = jdbcContext.connection();
con.setTransactionIsolation(Connection.TRANSACTION_SERIALIZABLE);
EntityTransaction tx = em.getTransaction();
When you end the connection, it returns to its default isolation level?
Is there another way to do it using source code?