@Test public void test() { List<FeaturedStreamDTO> results = sut.execute(null); assertEquals(2, results.size()); assertEquals(2, results.get(0).getId().longValue()); }
@Override public List<FeaturedStreamDTO> execute(final MapperRequest inRequest) { String q = "SELECT NEW org.eurekastreams.server.domain.dto.FeaturedStreamDTO " + "(id, description, streamScope.id, streamScope.scopeType, " + "streamScope.uniqueKey, streamScope.destinationEntityId) " + "FROM FeaturedStream ORDER BY created DESC"; return getEntityManager().createQuery(q).getResultList(); }
GetFeaturedStreamDTOsDbMapper extends BaseArgDomainMapper<MapperRequest, List<FeaturedStreamDTO>> { @Override public List<FeaturedStreamDTO> execute(final MapperRequest inRequest) { String q = "SELECT NEW org.eurekastreams.server.domain.dto.FeaturedStreamDTO " + "(id, description, streamScope.id, streamScope.scopeType, " + "streamScope.uniqueKey, streamScope.destinationEntityId) " + "FROM FeaturedStream ORDER BY created DESC"; return getEntityManager().createQuery(q).getResultList(); } }
GetFeaturedStreamDTOsDbMapper extends BaseArgDomainMapper<MapperRequest, List<FeaturedStreamDTO>> { @Override public List<FeaturedStreamDTO> execute(final MapperRequest inRequest) { String q = "SELECT NEW org.eurekastreams.server.domain.dto.FeaturedStreamDTO " + "(id, description, streamScope.id, streamScope.scopeType, " + "streamScope.uniqueKey, streamScope.destinationEntityId) " + "FROM FeaturedStream ORDER BY created DESC"; return getEntityManager().createQuery(q).getResultList(); }  }
GetFeaturedStreamDTOsDbMapper extends BaseArgDomainMapper<MapperRequest, List<FeaturedStreamDTO>> { @Override public List<FeaturedStreamDTO> execute(final MapperRequest inRequest) { String q = "SELECT NEW org.eurekastreams.server.domain.dto.FeaturedStreamDTO " + "(id, description, streamScope.id, streamScope.scopeType, " + "streamScope.uniqueKey, streamScope.destinationEntityId) " + "FROM FeaturedStream ORDER BY created DESC"; return getEntityManager().createQuery(q).getResultList(); }  @Override List<FeaturedStreamDTO> execute(final MapperRequest inRequest); }
GetFeaturedStreamDTOsDbMapper extends BaseArgDomainMapper<MapperRequest, List<FeaturedStreamDTO>> { @Override public List<FeaturedStreamDTO> execute(final MapperRequest inRequest) { String q = "SELECT NEW org.eurekastreams.server.domain.dto.FeaturedStreamDTO " + "(id, description, streamScope.id, streamScope.scopeType, " + "streamScope.uniqueKey, streamScope.destinationEntityId) " + "FROM FeaturedStream ORDER BY created DESC"; return getEntityManager().createQuery(q).getResultList(); }  @Override List<FeaturedStreamDTO> execute(final MapperRequest inRequest);  }