@Test public void testGet() { List<Map<String, Object>> results = sut.execute(null); assertTrue(results.get(0).containsKey("accountId")); assertTrue(results.get(0).containsKey("additionalProperties")); assertEquals(TOTAL_USER_IDS, results.size()); }
@SuppressWarnings("unchecked") @Override public List<Map<String, Object>> execute(final Object inRequest) { return (List<Map<String, Object>>) getEntityManager().createQuery( "select new map(p.accountId as accountId, " + "p.additionalProperties as additionalProperties) from Person p").getResultList(); }
GetAllPersonAdditionalProperties extends ReadMapper<Object, List<Map<String, Object>>> { @SuppressWarnings("unchecked") @Override public List<Map<String, Object>> execute(final Object inRequest) { return (List<Map<String, Object>>) getEntityManager().createQuery( "select new map(p.accountId as accountId, " + "p.additionalProperties as additionalProperties) from Person p").getResultList(); } }
GetAllPersonAdditionalProperties extends ReadMapper<Object, List<Map<String, Object>>> { @SuppressWarnings("unchecked") @Override public List<Map<String, Object>> execute(final Object inRequest) { return (List<Map<String, Object>>) getEntityManager().createQuery( "select new map(p.accountId as accountId, " + "p.additionalProperties as additionalProperties) from Person p").getResultList(); }  }
GetAllPersonAdditionalProperties extends ReadMapper<Object, List<Map<String, Object>>> { @SuppressWarnings("unchecked") @Override public List<Map<String, Object>> execute(final Object inRequest) { return (List<Map<String, Object>>) getEntityManager().createQuery( "select new map(p.accountId as accountId, " + "p.additionalProperties as additionalProperties) from Person p").getResultList(); }  @SuppressWarnings("unchecked") @Override List<Map<String, Object>> execute(final Object inRequest); }
GetAllPersonAdditionalProperties extends ReadMapper<Object, List<Map<String, Object>>> { @SuppressWarnings("unchecked") @Override public List<Map<String, Object>> execute(final Object inRequest) { return (List<Map<String, Object>>) getEntityManager().createQuery( "select new map(p.accountId as accountId, " + "p.additionalProperties as additionalProperties) from Person p").getResultList(); }  @SuppressWarnings("unchecked") @Override List<Map<String, Object>> execute(final Object inRequest);  }