ManifestFileRecordCurator extends AbstractHibernateCurator<ManifestFileRecord> { @Transactional public boolean deleteById(String id) { String queryString = String.format("delete from %s where id=:id", QUERY_CLASS_NAME); Query q = getEntityManager().createQuery(queryString); q.setParameter("id", id); return q.executeUpdate() > 0; } ManifestFileRecordCurator(); @Transactional boolean deleteById(String id); ManifestFileRecord findFile(String id); @Transactional ManifestFileRecord createFile(ManifestFileType type, File fileToStore, String principalName,
        String targetId); @Transactional int deleteExpired(Date expiryDate); int deleteMatching(ManifestFileType type, String targetId);  }
@Test public void testDeleteById() throws Exception { assertNotNull(record); assertTrue(curator.deleteById(record.getId())); }