@Test public void test() { final Long userId = 42L; List<StreamScope> result = sut.execute(userId); assertEquals(2, result.size()); }
public List<StreamScope> execute(final Long inUserEntityId) { List<StreamScope> bookmarks = getEntityManager().createQuery( "SELECT bookmarks from Person p where p.id = :userId order by scopeId").setParameter("userId", inUserEntityId).getResultList(); return bookmarks; }
GetUserBookmarksDbMapper extends BaseArgDomainMapper<Long, List<StreamScope>> implements
        DomainMapper<Long, List<StreamScope>> { public List<StreamScope> execute(final Long inUserEntityId) { List<StreamScope> bookmarks = getEntityManager().createQuery( "SELECT bookmarks from Person p where p.id = :userId order by scopeId").setParameter("userId", inUserEntityId).getResultList(); return bookmarks; } }
GetUserBookmarksDbMapper extends BaseArgDomainMapper<Long, List<StreamScope>> implements
        DomainMapper<Long, List<StreamScope>> { public List<StreamScope> execute(final Long inUserEntityId) { List<StreamScope> bookmarks = getEntityManager().createQuery( "SELECT bookmarks from Person p where p.id = :userId order by scopeId").setParameter("userId", inUserEntityId).getResultList(); return bookmarks; }  }
GetUserBookmarksDbMapper extends BaseArgDomainMapper<Long, List<StreamScope>> implements
        DomainMapper<Long, List<StreamScope>> { public List<StreamScope> execute(final Long inUserEntityId) { List<StreamScope> bookmarks = getEntityManager().createQuery( "SELECT bookmarks from Person p where p.id = :userId order by scopeId").setParameter("userId", inUserEntityId).getResultList(); return bookmarks; }  List<StreamScope> execute(final Long inUserEntityId); }
GetUserBookmarksDbMapper extends BaseArgDomainMapper<Long, List<StreamScope>> implements
        DomainMapper<Long, List<StreamScope>> { public List<StreamScope> execute(final Long inUserEntityId) { List<StreamScope> bookmarks = getEntityManager().createQuery( "SELECT bookmarks from Person p where p.id = :userId order by scopeId").setParameter("userId", inUserEntityId).getResultList(); return bookmarks; }  List<StreamScope> execute(final Long inUserEntityId);  }