HomeSort by relevance Sort by last modified time
    Searched refs:entityManager (Results 1 - 4 of 4) sorted by null

  /external/guice/extensions/persist/src/com/google/inject/persist/jpa/
JpaPersistService.java 34 import javax.persistence.EntityManager;
42 class JpaPersistService implements Provider<EntityManager>, UnitOfWork, PersistService {
43 private final ThreadLocal<EntityManager> entityManager = new ThreadLocal<EntityManager>();
55 public EntityManager get() {
60 EntityManager em = entityManager.get();
61 Preconditions.checkState(null != em, "Requested EntityManager outside work unit. "
69 return entityManager.get() != null
    [all...]
  /external/guice/extensions/persist/test/com/google/inject/persist/jpa/
JpaPersistServiceTest.java 28 import javax.persistence.EntityManager;
40 private final EntityManager entityManager = mock(EntityManager.class);
45 when(factory.createEntityManager()).thenReturn(entityManager);
52 // arrange an exception on sut.end(), which invokes entityManager.close()
53 doThrow(SimulatedException.class).when(entityManager).close();
  /external/guice/extensions/persist/lib/
hibernate-entitymanager.jar 
  /prebuilts/tools/common/m2/repository/org/apache/logging/log4j/log4j-core/2.5/
log4j-core-2.5.jar 

Completed in 1050 milliseconds