@Test public void testExecuteZeroRows() { final long id = 98L; Collection<NotificationFilterPreferenceDTO> list = sut.execute(id); assertEquals(0, list.size()); }
@Override @SuppressWarnings("unchecked") public Collection<NotificationFilterPreferenceDTO> execute(final Long personId) { String q = "select new org.eurekastreams.server.domain.NotificationFilterPreferenceDTO" + "(person.id,notifierType,notificationCategory) " + "from NotificationFilterPreference where person.id = :personId"; Query query = getEntityManager().createQuery(q).setParameter("personId", personId); return query.getResultList(); }
GetNotificationFilterPreferencesByPersonId extends
        BaseArgDomainMapper<Long, Collection<NotificationFilterPreferenceDTO>> { @Override @SuppressWarnings("unchecked") public Collection<NotificationFilterPreferenceDTO> execute(final Long personId) { String q = "select new org.eurekastreams.server.domain.NotificationFilterPreferenceDTO" + "(person.id,notifierType,notificationCategory) " + "from NotificationFilterPreference where person.id = :personId"; Query query = getEntityManager().createQuery(q).setParameter("personId", personId); return query.getResultList(); } }
GetNotificationFilterPreferencesByPersonId extends
        BaseArgDomainMapper<Long, Collection<NotificationFilterPreferenceDTO>> { @Override @SuppressWarnings("unchecked") public Collection<NotificationFilterPreferenceDTO> execute(final Long personId) { String q = "select new org.eurekastreams.server.domain.NotificationFilterPreferenceDTO" + "(person.id,notifierType,notificationCategory) " + "from NotificationFilterPreference where person.id = :personId"; Query query = getEntityManager().createQuery(q).setParameter("personId", personId); return query.getResultList(); }  }
GetNotificationFilterPreferencesByPersonId extends
        BaseArgDomainMapper<Long, Collection<NotificationFilterPreferenceDTO>> { @Override @SuppressWarnings("unchecked") public Collection<NotificationFilterPreferenceDTO> execute(final Long personId) { String q = "select new org.eurekastreams.server.domain.NotificationFilterPreferenceDTO" + "(person.id,notifierType,notificationCategory) " + "from NotificationFilterPreference where person.id = :personId"; Query query = getEntityManager().createQuery(q).setParameter("personId", personId); return query.getResultList(); }  @Override @SuppressWarnings("unchecked") Collection<NotificationFilterPreferenceDTO> execute(final Long personId); }
GetNotificationFilterPreferencesByPersonId extends
        BaseArgDomainMapper<Long, Collection<NotificationFilterPreferenceDTO>> { @Override @SuppressWarnings("unchecked") public Collection<NotificationFilterPreferenceDTO> execute(final Long personId) { String q = "select new org.eurekastreams.server.domain.NotificationFilterPreferenceDTO" + "(person.id,notifierType,notificationCategory) " + "from NotificationFilterPreference where person.id = :personId"; Query query = getEntityManager().createQuery(q).setParameter("personId", personId); return query.getResultList(); }  @Override @SuppressWarnings("unchecked") Collection<NotificationFilterPreferenceDTO> execute(final Long personId);  }