@Test void testAdd() { operationService.add(OPERATION_1); assertEquals(Collections.singletonList(OPERATION_1), operationService.createQuery() .list()); assertEquals(OPERATION_1, operationService.createQuery() .processId(OPERATION_1.getProcessId()) .singleResult()); }
public OperationQuery createQuery() { return new OperationQueryImpl(createEntityManager(), operationMapper); }
OperationService extends PersistenceService<Operation, OperationDto, String> { public OperationQuery createQuery() { return new OperationQueryImpl(createEntityManager(), operationMapper); } }
OperationService extends PersistenceService<Operation, OperationDto, String> { public OperationQuery createQuery() { return new OperationQueryImpl(createEntityManager(), operationMapper); } @Inject  OperationService(EntityManagerFactory entityManagerFactory); }
OperationService extends PersistenceService<Operation, OperationDto, String> { public OperationQuery createQuery() { return new OperationQueryImpl(createEntityManager(), operationMapper); } @Inject  OperationService(EntityManagerFactory entityManagerFactory); OperationQuery createQuery(); }
OperationService extends PersistenceService<Operation, OperationDto, String> { public OperationQuery createQuery() { return new OperationQueryImpl(createEntityManager(), operationMapper); } @Inject  OperationService(EntityManagerFactory entityManagerFactory); OperationQuery createQuery();  }