@Test public void testExecuteOrg5() { final Long activityId = 6789L; final Long commentorId = 99L; List<Long> commentorIds = sut.execute(activityId); assertEquals(1, commentorIds.size()); assertTrue(commentorIds.contains(commentorId)); }
@Override @SuppressWarnings("unchecked") public List<Long> execute(final Long activityId) { Query q2 = getEntityManager().createQuery("select distinct author.id from Comment where target.id = :id") .setParameter("id", activityId); return q2.getResultList(); }
GetCommentorIdsByActivityId extends BaseDomainMapper implements DomainMapper<Long, List<Long>> { @Override @SuppressWarnings("unchecked") public List<Long> execute(final Long activityId) { Query q2 = getEntityManager().createQuery("select distinct author.id from Comment where target.id = :id") .setParameter("id", activityId); return q2.getResultList(); } }
GetCommentorIdsByActivityId extends BaseDomainMapper implements DomainMapper<Long, List<Long>> { @Override @SuppressWarnings("unchecked") public List<Long> execute(final Long activityId) { Query q2 = getEntityManager().createQuery("select distinct author.id from Comment where target.id = :id") .setParameter("id", activityId); return q2.getResultList(); }  }
GetCommentorIdsByActivityId extends BaseDomainMapper implements DomainMapper<Long, List<Long>> { @Override @SuppressWarnings("unchecked") public List<Long> execute(final Long activityId) { Query q2 = getEntityManager().createQuery("select distinct author.id from Comment where target.id = :id") .setParameter("id", activityId); return q2.getResultList(); }  @Override @SuppressWarnings("unchecked") List<Long> execute(final Long activityId); }
GetCommentorIdsByActivityId extends BaseDomainMapper implements DomainMapper<Long, List<Long>> { @Override @SuppressWarnings("unchecked") public List<Long> execute(final Long activityId) { Query q2 = getEntityManager().createQuery("select distinct author.id from Comment where target.id = :id") .setParameter("id", activityId); return q2.getResultList(); }  @Override @SuppressWarnings("unchecked") List<Long> execute(final Long activityId);  }