Searched refs:UnitOfWork (Results 1 – 16 of 16) sorted by relevance
25 import com.google.inject.persist.UnitOfWork;71 injector.getInstance(UnitOfWork.class).end(); in testSimpleTransaction()77 injector.getInstance(UnitOfWork.class).end(); in testSimpleTransaction()98 injector.getInstance(UnitOfWork.class).end(); in testSimpleTransactionWithMerge()104 injector.getInstance(UnitOfWork.class).end(); in testSimpleTransactionWithMerge()122 injector.getInstance(UnitOfWork.class).end(); in disabled_testSimpleTransactionWithMergeAndDF()129 injector.getInstance(UnitOfWork.class).end(); in disabled_testSimpleTransactionWithMergeAndDF()138 injector.getInstance(UnitOfWork.class).end(); in testSimpleTransactionRollbackOnChecked()150 injector.getInstance(UnitOfWork.class).end(); in testSimpleTransactionRollbackOnChecked()154 injector.getInstance(UnitOfWork.class).end(); in testSimpleTransactionRollbackOnChecked()[all …]
22 import com.google.inject.persist.UnitOfWork;41 injector.getInstance(UnitOfWork.class).end(); in tearDown()47 assertEquals("SINGLETON VIOLATION " + UnitOfWork.class.getName(), in testSessionCreateOnInjection()48 injector.getInstance(UnitOfWork.class), injector.getInstance(UnitOfWork.class)); in testSessionCreateOnInjection()
22 import com.google.inject.persist.UnitOfWork;48 injector.getInstance(UnitOfWork.class).end(); in tearDown()54 assertEquals("SINGLETON VIOLATION " + UnitOfWork.class.getName(), in testSessionCreateOnInjection()55 injector.getInstance(UnitOfWork.class), in testSessionCreateOnInjection()56 injector.getInstance(UnitOfWork.class)); in testSessionCreateOnInjection()
24 import com.google.inject.persist.UnitOfWork;55 injector.getInstance(UnitOfWork.class).end(); in tearDown()68 injector.getInstance(UnitOfWork.class).end(); in testSimpleTransaction()88 injector.getInstance(UnitOfWork.class).end(); in testSimpleTransactionWithMerge()101 injector.getInstance(UnitOfWork.class).end(); in testSimpleTransactionRollbackOnChecked()113 injector.getInstance(UnitOfWork.class).end(); in testSimpleTransactionRollbackOnChecked()123 injector.getInstance(UnitOfWork.class).end(); in testSimpleTransactionRollbackOnUnchecked()133 injector.getInstance(UnitOfWork.class).end(); in testSimpleTransactionRollbackOnUnchecked()
24 import com.google.inject.persist.UnitOfWork;57 injector.getInstance(UnitOfWork.class).end(); in tearDown()72 injector.getInstance(UnitOfWork.class).end(); in testSimpleTransaction()86 injector.getInstance(UnitOfWork.class).end(); in testSimpleTransactionRollbackOnChecked()98 injector.getInstance(UnitOfWork.class).end(); in testSimpleTransactionRollbackOnChecked()109 injector.getInstance(UnitOfWork.class).end(); in testSimpleTransactionRollbackOnUnchecked()119 injector.getInstance(UnitOfWork.class).end(); in testSimpleTransactionRollbackOnUnchecked()
24 import com.google.inject.persist.UnitOfWork;62 injector.getInstance(UnitOfWork.class).begin(); in testWorkManagerInSession()66 injector.getInstance(UnitOfWork.class).end(); in testWorkManagerInSession()70 injector.getInstance(UnitOfWork.class).begin(); in testWorkManagerInSession()88 injector.getInstance(UnitOfWork.class).end(); in testWorkManagerInSession()
24 import com.google.inject.persist.UnitOfWork;57 injector.getInstance(UnitOfWork.class).begin(); in testSimpleCrossTxnWork()71 injector.getInstance(UnitOfWork.class).end(); in testSimpleCrossTxnWork()72 injector.getInstance(UnitOfWork.class).begin(); in testSimpleCrossTxnWork()
24 import com.google.inject.persist.UnitOfWork;47 injector.getInstance(UnitOfWork.class).begin(); in setUp()52 injector.getInstance(UnitOfWork.class).end(); in tearDown()
24 import com.google.inject.persist.UnitOfWork;77 injector.getInstance(UnitOfWork.class).end(); in testSimpleCrossTxnWork()
21 import com.google.inject.persist.UnitOfWork;76 injector.getInstance(UnitOfWork.class).end(); in tearDown()
69 private final UnitOfWork unitOfWork;73 public PersistFilter(UnitOfWork unitOfWork, PersistService persistService) { in PersistFilter()
38 public interface UnitOfWork { interface
39 requireBinding(UnitOfWork.class); in configure()
21 import com.google.inject.persist.UnitOfWork;41 private UnitOfWork unitOfWork = null;
25 import com.google.inject.persist.UnitOfWork;42 class JpaPersistService implements Provider<EntityManager>, UnitOfWork, PersistService {
27 import com.google.inject.persist.UnitOfWork;68 bind(UnitOfWork.class).to(JpaPersistService.class); in configurePersistence()