}
entityManager.getTransaction().begin();
logger.debug("Transaction started");
session.doWork(new Work() {
public void execute(Connection connection) throws SQLException {
logger.debug("The connection instance is {}", connection);
logger.debug("The isolation level of the connection is {} and the isolation level set on the transaction is {}",
connection.getTransactionIsolation(), definition.getIsolationLevel());