@Test public void executeTest() { Image myImage = getMapper.execute("myImage"); assertTrue(myImage != null); sut.execute("myImage"); Image myDeletedImage = getMapper.execute("myImage"); assertTrue(myDeletedImage == null); }
@SuppressWarnings("unchecked") public void execute(final String identifier) { String q = "delete from Image where imageIdentifier = :identifier"; Query query = getEntityManager().createQuery(q).setParameter("identifier", identifier); query.executeUpdate(); }
DeleteImage extends BaseDomainMapper { @SuppressWarnings("unchecked") public void execute(final String identifier) { String q = "delete from Image where imageIdentifier = :identifier"; Query query = getEntityManager().createQuery(q).setParameter("identifier", identifier); query.executeUpdate(); } }
DeleteImage extends BaseDomainMapper { @SuppressWarnings("unchecked") public void execute(final String identifier) { String q = "delete from Image where imageIdentifier = :identifier"; Query query = getEntityManager().createQuery(q).setParameter("identifier", identifier); query.executeUpdate(); }  }
DeleteImage extends BaseDomainMapper { @SuppressWarnings("unchecked") public void execute(final String identifier) { String q = "delete from Image where imageIdentifier = :identifier"; Query query = getEntityManager().createQuery(q).setParameter("identifier", identifier); query.executeUpdate(); }  @SuppressWarnings("unchecked") void execute(final String identifier); }
DeleteImage extends BaseDomainMapper { @SuppressWarnings("unchecked") public void execute(final String identifier) { String q = "delete from Image where imageIdentifier = :identifier"; Query query = getEntityManager().createQuery(q).setParameter("identifier", identifier); query.executeUpdate(); }  @SuppressWarnings("unchecked") void execute(final String identifier);  }