Home | History | Annotate | Download | only in jpa

Lines Matching refs:em

36  * For instance, a session-per-request strategy will control the opening and closing of the EM at
63 EntityManager em = injector.getInstance(EntityManager.class);
71 //persisted entity should remain in the same em (which should still be open)
74 assertTrue("EntityManager appears to have been closed across txns!", em.contains(entity));
75 assertTrue("EntityManager appears to have been closed across txns!", em.isOpen());
80 em = injector.getInstance(EntityManager.class);
81 assertNotNull(em.createQuery("from JpaTestEntity where text = :text")
83 assertNotNull(em.createQuery("from JpaTestEntity where text = :text")
85 em.close();
89 @Inject EntityManager em;
95 em.persist(entity);
104 em.persist(entity);