@Test public void test() { final Long userId = 42L; List<StreamFilter> result = sut.execute(userId); assertEquals(2, result.size()); }
public List<StreamFilter> execute(final Long inUserEntityId) { List<Stream> streams = getEntityManager().createQuery( "SELECT streams from Person p where p.id = :userId order by name").setParameter("userId", inUserEntityId).getResultList(); List<StreamFilter> filters = new ArrayList<StreamFilter>(); for (Stream stream : streams) { filters.add(stream); } return filters; }
GetUserStreamsDbMapper extends BaseArgDomainMapper<Long, List<StreamFilter>> implements
        DomainMapper<Long, List<StreamFilter>> { public List<StreamFilter> execute(final Long inUserEntityId) { List<Stream> streams = getEntityManager().createQuery( "SELECT streams from Person p where p.id = :userId order by name").setParameter("userId", inUserEntityId).getResultList(); List<StreamFilter> filters = new ArrayList<StreamFilter>(); for (Stream stream : streams) { filters.add(stream); } return filters; } }
GetUserStreamsDbMapper extends BaseArgDomainMapper<Long, List<StreamFilter>> implements
        DomainMapper<Long, List<StreamFilter>> { public List<StreamFilter> execute(final Long inUserEntityId) { List<Stream> streams = getEntityManager().createQuery( "SELECT streams from Person p where p.id = :userId order by name").setParameter("userId", inUserEntityId).getResultList(); List<StreamFilter> filters = new ArrayList<StreamFilter>(); for (Stream stream : streams) { filters.add(stream); } return filters; }  }
GetUserStreamsDbMapper extends BaseArgDomainMapper<Long, List<StreamFilter>> implements
        DomainMapper<Long, List<StreamFilter>> { public List<StreamFilter> execute(final Long inUserEntityId) { List<Stream> streams = getEntityManager().createQuery( "SELECT streams from Person p where p.id = :userId order by name").setParameter("userId", inUserEntityId).getResultList(); List<StreamFilter> filters = new ArrayList<StreamFilter>(); for (Stream stream : streams) { filters.add(stream); } return filters; }  List<StreamFilter> execute(final Long inUserEntityId); }
GetUserStreamsDbMapper extends BaseArgDomainMapper<Long, List<StreamFilter>> implements
        DomainMapper<Long, List<StreamFilter>> { public List<StreamFilter> execute(final Long inUserEntityId) { List<Stream> streams = getEntityManager().createQuery( "SELECT streams from Person p where p.id = :userId order by name").setParameter("userId", inUserEntityId).getResultList(); List<StreamFilter> filters = new ArrayList<StreamFilter>(); for (Stream stream : streams) { filters.add(stream); } return filters; }  List<StreamFilter> execute(final Long inUserEntityId);  }