19 package com.mysql.clusterj.jpatest;
21 import javax.persistence.EntityManager;
22 import javax.persistence.EntityTransaction;
29 protected EntityManager em;
31 protected EntityTransaction tx;
36 em = emf.createEntityManager();
40 public void setUp(Object... props) {
42 em = emf.createEntityManager();
57 EntityTransaction tx = em.getTransaction();
69 EntityTransaction tx = em.getTransaction();
82 if (em != null && em.isOpen()) {
83 EntityTransaction tx = em.getTransaction();