@Test public void test() { final long personId = 42L; DomainMapper<Long, Person> sut = new GetPlaceholderEntityMapper<Person>(Person.class); ((BaseDomainMapper) sut).setEntityManager(getEntityManager()); Person result = sut.execute(personId); assertNotNull(result); assertEquals(personId, result.getId()); }
@Override public TReturnType execute(final Long inRequest) { return (TReturnType) getHibernateSession().get(entityType, inRequest); }
GetPlaceholderEntityMapper extends BaseDomainMapper implements
        DomainMapper<Long, TReturnType> { @Override public TReturnType execute(final Long inRequest) { return (TReturnType) getHibernateSession().get(entityType, inRequest); } }
GetPlaceholderEntityMapper extends BaseDomainMapper implements
        DomainMapper<Long, TReturnType> { @Override public TReturnType execute(final Long inRequest) { return (TReturnType) getHibernateSession().get(entityType, inRequest); } GetPlaceholderEntityMapper(final Class<TReturnType> inEntityType); }
GetPlaceholderEntityMapper extends BaseDomainMapper implements
        DomainMapper<Long, TReturnType> { @Override public TReturnType execute(final Long inRequest) { return (TReturnType) getHibernateSession().get(entityType, inRequest); } GetPlaceholderEntityMapper(final Class<TReturnType> inEntityType); @Override TReturnType execute(final Long inRequest); }
GetPlaceholderEntityMapper extends BaseDomainMapper implements
        DomainMapper<Long, TReturnType> { @Override public TReturnType execute(final Long inRequest) { return (TReturnType) getHibernateSession().get(entityType, inRequest); } GetPlaceholderEntityMapper(final Class<TReturnType> inEntityType); @Override TReturnType execute(final Long inRequest);  }