@SuppressWarnings("unchecked") @Test public void testExecute() { List<Long> results = sut.execute(smithersId); assertEquals(2, results.size()); assertEquals(new Long(mrburnsId), results.get(1)); assertEquals(new Long(smithersId), results.get(0)); }
@Override public List<Long> execute(final Long inRequest) { Query q = getEntityManager().createQuery("select f.pk.followingId from Follower f where f.pk.followerId = :id") .setParameter("id", inRequest); return q.getResultList(); }
GetFollowedPersonIdsForPersonByIdDbMapper extends BaseArgDomainMapper<Long, List<Long>> { @Override public List<Long> execute(final Long inRequest) { Query q = getEntityManager().createQuery("select f.pk.followingId from Follower f where f.pk.followerId = :id") .setParameter("id", inRequest); return q.getResultList(); } }
GetFollowedPersonIdsForPersonByIdDbMapper extends BaseArgDomainMapper<Long, List<Long>> { @Override public List<Long> execute(final Long inRequest) { Query q = getEntityManager().createQuery("select f.pk.followingId from Follower f where f.pk.followerId = :id") .setParameter("id", inRequest); return q.getResultList(); }  }
GetFollowedPersonIdsForPersonByIdDbMapper extends BaseArgDomainMapper<Long, List<Long>> { @Override public List<Long> execute(final Long inRequest) { Query q = getEntityManager().createQuery("select f.pk.followingId from Follower f where f.pk.followerId = :id") .setParameter("id", inRequest); return q.getResultList(); }  @Override List<Long> execute(final Long inRequest); }
GetFollowedPersonIdsForPersonByIdDbMapper extends BaseArgDomainMapper<Long, List<Long>> { @Override public List<Long> execute(final Long inRequest) { Query q = getEntityManager().createQuery("select f.pk.followingId from Follower f where f.pk.followerId = :id") .setParameter("id", inRequest); return q.getResultList(); }  @Override List<Long> execute(final Long inRequest);  }