@Test public void test() { final Long themeId = 102L; sut.execute(themeId); sut.flush(); assertEquals(0, getEntityManager().createQuery("From Theme where id = 102").getResultList().size()); }
@Override public Void execute(final Long inRequest) { getEntityManager().remove(getHibernateSession().load(clazz, inRequest)); return null; }
DeleteEntityByIdDbMapper extends BaseArgDomainMapper<Long, Void> { @Override public Void execute(final Long inRequest) { getEntityManager().remove(getHibernateSession().load(clazz, inRequest)); return null; } }
DeleteEntityByIdDbMapper extends BaseArgDomainMapper<Long, Void> { @Override public Void execute(final Long inRequest) { getEntityManager().remove(getHibernateSession().load(clazz, inRequest)); return null; } DeleteEntityByIdDbMapper(final Class< ? > inClazz); }
DeleteEntityByIdDbMapper extends BaseArgDomainMapper<Long, Void> { @Override public Void execute(final Long inRequest) { getEntityManager().remove(getHibernateSession().load(clazz, inRequest)); return null; } DeleteEntityByIdDbMapper(final Class< ? > inClazz); @Override Void execute(final Long inRequest); }
DeleteEntityByIdDbMapper extends BaseArgDomainMapper<Long, Void> { @Override public Void execute(final Long inRequest) { getEntityManager().remove(getHibernateSession().load(clazz, inRequest)); return null; } DeleteEntityByIdDbMapper(final Class< ? > inClazz); @Override Void execute(final Long inRequest);  }