@Test public void test() { final long lowestId = 11L; List<MembershipCriteria> results = sut.execute(null); assertEquals(2, results.size()); assertEquals(lowestId, results.get(0).getId()); }
@Override public List<MembershipCriteria> execute(final MapperRequest inRequest) { String q = "FROM MembershipCriteria ORDER BY id ASC"; return getEntityManager().createQuery(q).getResultList(); }
GetMembershipCriteriaDBMapper extends BaseArgDomainMapper<MapperRequest, List<MembershipCriteria>> { @Override public List<MembershipCriteria> execute(final MapperRequest inRequest) { String q = "FROM MembershipCriteria ORDER BY id ASC"; return getEntityManager().createQuery(q).getResultList(); } }
GetMembershipCriteriaDBMapper extends BaseArgDomainMapper<MapperRequest, List<MembershipCriteria>> { @Override public List<MembershipCriteria> execute(final MapperRequest inRequest) { String q = "FROM MembershipCriteria ORDER BY id ASC"; return getEntityManager().createQuery(q).getResultList(); }  }
GetMembershipCriteriaDBMapper extends BaseArgDomainMapper<MapperRequest, List<MembershipCriteria>> { @Override public List<MembershipCriteria> execute(final MapperRequest inRequest) { String q = "FROM MembershipCriteria ORDER BY id ASC"; return getEntityManager().createQuery(q).getResultList(); }  @Override List<MembershipCriteria> execute(final MapperRequest inRequest); }
GetMembershipCriteriaDBMapper extends BaseArgDomainMapper<MapperRequest, List<MembershipCriteria>> { @Override public List<MembershipCriteria> execute(final MapperRequest inRequest) { String q = "FROM MembershipCriteria ORDER BY id ASC"; return getEntityManager().createQuery(q).getResultList(); }  @Override List<MembershipCriteria> execute(final MapperRequest inRequest);  }