@SuppressWarnings("unchecked") @Test public void testExecute() { List<Long> results = sut.execute(groupId); assertEquals(3, results.size()); }
@SuppressWarnings("unchecked") @Override public List<Long> execute(final Long inRequest) { return getEntityManager().createQuery( "select gf.pk.followerId from GroupFollower gf where gf.pk.followingId = :id").setParameter("id", inRequest).getResultList(); }
GetFollowerPersonIdsForGroupByIdDbMapper extends BaseArgDomainMapper<Long, List<Long>> { @SuppressWarnings("unchecked") @Override public List<Long> execute(final Long inRequest) { return getEntityManager().createQuery( "select gf.pk.followerId from GroupFollower gf where gf.pk.followingId = :id").setParameter("id", inRequest).getResultList(); } }
GetFollowerPersonIdsForGroupByIdDbMapper extends BaseArgDomainMapper<Long, List<Long>> { @SuppressWarnings("unchecked") @Override public List<Long> execute(final Long inRequest) { return getEntityManager().createQuery( "select gf.pk.followerId from GroupFollower gf where gf.pk.followingId = :id").setParameter("id", inRequest).getResultList(); }  }
GetFollowerPersonIdsForGroupByIdDbMapper extends BaseArgDomainMapper<Long, List<Long>> { @SuppressWarnings("unchecked") @Override public List<Long> execute(final Long inRequest) { return getEntityManager().createQuery( "select gf.pk.followerId from GroupFollower gf where gf.pk.followingId = :id").setParameter("id", inRequest).getResultList(); }  @SuppressWarnings("unchecked") @Override List<Long> execute(final Long inRequest); }
GetFollowerPersonIdsForGroupByIdDbMapper extends BaseArgDomainMapper<Long, List<Long>> { @SuppressWarnings("unchecked") @Override public List<Long> execute(final Long inRequest) { return getEntityManager().createQuery( "select gf.pk.followerId from GroupFollower gf where gf.pk.followingId = :id").setParameter("id", inRequest).getResultList(); }  @SuppressWarnings("unchecked") @Override List<Long> execute(final Long inRequest);  }