EntityTransaction tx = em.getTransaction(); tx.begin(); // persist, merge, etc. - operations which needs to be in the Tx... tx.close();
EntityTransaction tx = em.getTransaction(); tx.begin(); // persist, merge, etc. - operations which needs to be in the Tx... tx.close();