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