@Test public void testExecute() { List<Long> results = sut.execute(groupId); assertEquals(2, results.size()); assertTrue(results.contains(smithersId)); assertTrue(results.contains(fordId)); }
@SuppressWarnings("unchecked") @Override public List<Long> execute(final Long inRequest) { String queryString = "SELECT p.id FROM Person p, DomainGroup g WHERE p member of g.coordinators" + " AND g.id = :groupId"; return getEntityManager().createQuery(queryString).setParameter("groupId", inRequest).getResultList(); }
GetGroupCoordinatorIdsByGroupIdDbMapper extends BaseArgDomainMapper<Long, List<Long>> { @SuppressWarnings("unchecked") @Override public List<Long> execute(final Long inRequest) { String queryString = "SELECT p.id FROM Person p, DomainGroup g WHERE p member of g.coordinators" + " AND g.id = :groupId"; return getEntityManager().createQuery(queryString).setParameter("groupId", inRequest).getResultList(); } }
GetGroupCoordinatorIdsByGroupIdDbMapper extends BaseArgDomainMapper<Long, List<Long>> { @SuppressWarnings("unchecked") @Override public List<Long> execute(final Long inRequest) { String queryString = "SELECT p.id FROM Person p, DomainGroup g WHERE p member of g.coordinators" + " AND g.id = :groupId"; return getEntityManager().createQuery(queryString).setParameter("groupId", inRequest).getResultList(); }  }
GetGroupCoordinatorIdsByGroupIdDbMapper extends BaseArgDomainMapper<Long, List<Long>> { @SuppressWarnings("unchecked") @Override public List<Long> execute(final Long inRequest) { String queryString = "SELECT p.id FROM Person p, DomainGroup g WHERE p member of g.coordinators" + " AND g.id = :groupId"; return getEntityManager().createQuery(queryString).setParameter("groupId", inRequest).getResultList(); }  @SuppressWarnings("unchecked") @Override List<Long> execute(final Long inRequest); }
GetGroupCoordinatorIdsByGroupIdDbMapper extends BaseArgDomainMapper<Long, List<Long>> { @SuppressWarnings("unchecked") @Override public List<Long> execute(final Long inRequest) { String queryString = "SELECT p.id FROM Person p, DomainGroup g WHERE p member of g.coordinators" + " AND g.id = :groupId"; return getEntityManager().createQuery(queryString).setParameter("groupId", inRequest).getResultList(); }  @SuppressWarnings("unchecked") @Override List<Long> execute(final Long inRequest);  }