@Test public void testBase() throws Exception { EntityManager em = persistenceProvider.acquireEntityManager(); DummyEntity entity = new DummyEntity("1"); em.persist(entity); em.flush(); em.clear(); em.close(); }
public EntityManager acquireEntityManager() { return doAcquireEntityManager(); }
PersistenceProvider { public EntityManager acquireEntityManager() { return doAcquireEntityManager(); } }
PersistenceProvider { public EntityManager acquireEntityManager() { return doAcquireEntityManager(); } PersistenceProvider(EntityManagerFactoryProvider emfProvider); }
PersistenceProvider { public EntityManager acquireEntityManager() { return doAcquireEntityManager(); } PersistenceProvider(EntityManagerFactoryProvider emfProvider); void openPersistenceUnit(); void closePersistenceUnit(); EntityManager acquireEntityManager(); EntityManager acquireEntityManagerWithActiveTransaction(); void releaseEntityManagerWithRollback(EntityManager em); T run(Boolean needActiveSession, RunCallback<T> callback); void run(Boolean needActiveSession, RunVoid callback); }
PersistenceProvider { public EntityManager acquireEntityManager() { return doAcquireEntityManager(); } PersistenceProvider(EntityManagerFactoryProvider emfProvider); void openPersistenceUnit(); void closePersistenceUnit(); EntityManager acquireEntityManager(); EntityManager acquireEntityManagerWithActiveTransaction(); void releaseEntityManagerWithRollback(EntityManager em); T run(Boolean needActiveSession, RunCallback<T> callback); void run(Boolean needActiveSession, RunVoid callback);  }