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