@Test(expected = NoResultException.class) public void delete() { long id = 3L; jpaRecommendationMapper.delete(id); jpaRecommendationMapper.findById(id); }
public void delete(final long id) { getEntityManager().createQuery("DELETE FROM Recommendation where id=:id").setParameter("id", id) .executeUpdate(); }
RecommendationMapper extends DomainEntityMapper<Recommendation> { public void delete(final long id) { getEntityManager().createQuery("DELETE FROM Recommendation where id=:id").setParameter("id", id) .executeUpdate(); } }
RecommendationMapper extends DomainEntityMapper<Recommendation> { public void delete(final long id) { getEntityManager().createQuery("DELETE FROM Recommendation where id=:id").setParameter("id", id) .executeUpdate(); } RecommendationMapper(final QueryOptimizer inQueryOptimizer); }
RecommendationMapper extends DomainEntityMapper<Recommendation> { public void delete(final long id) { getEntityManager().createQuery("DELETE FROM Recommendation where id=:id").setParameter("id", id) .executeUpdate(); } RecommendationMapper(final QueryOptimizer inQueryOptimizer); @SuppressWarnings("unchecked") List<Recommendation> findBySubjectOpenSocialId(final String subjectOpenSocialId); @SuppressWarnings("unchecked") List<Recommendation> findBySubjectOpenSocialId(final String subjectOpenSocialId, final int maxResults); void delete(final long id); }
RecommendationMapper extends DomainEntityMapper<Recommendation> { public void delete(final long id) { getEntityManager().createQuery("DELETE FROM Recommendation where id=:id").setParameter("id", id) .executeUpdate(); } RecommendationMapper(final QueryOptimizer inQueryOptimizer); @SuppressWarnings("unchecked") List<Recommendation> findBySubjectOpenSocialId(final String subjectOpenSocialId); @SuppressWarnings("unchecked") List<Recommendation> findBySubjectOpenSocialId(final String subjectOpenSocialId, final int maxResults); void delete(final long id);  }