@Test(expected = NoResultException.class) public void testDelete() { final long enrollmentId = 2042L; jpaEnrollmentMapper.delete(enrollmentId); jpaEnrollmentMapper.findById(enrollmentId); }
public void delete(final long inEnrollmentId) { Enrollment enrollment = findById(inEnrollmentId); getEntityManager().remove(enrollment); }
EnrollmentMapper extends DomainEntityMapper<Enrollment> { public void delete(final long inEnrollmentId) { Enrollment enrollment = findById(inEnrollmentId); getEntityManager().remove(enrollment); } }
EnrollmentMapper extends DomainEntityMapper<Enrollment> { public void delete(final long inEnrollmentId) { Enrollment enrollment = findById(inEnrollmentId); getEntityManager().remove(enrollment); } EnrollmentMapper(final QueryOptimizer inQueryOptimizer, final PersonMapper inPersonMapper); }
EnrollmentMapper extends DomainEntityMapper<Enrollment> { public void delete(final long inEnrollmentId) { Enrollment enrollment = findById(inEnrollmentId); getEntityManager().remove(enrollment); } EnrollmentMapper(final QueryOptimizer inQueryOptimizer, final PersonMapper inPersonMapper); @SuppressWarnings("unchecked") List<Enrollment> findPersonEnrollmentsByOpenSocialId(final String inOpenSocialId); @SuppressWarnings("unchecked") List<Enrollment> findPersonEnrollmentsById(final Long inId); void delete(final long inEnrollmentId); void flush(final String uuid); }
EnrollmentMapper extends DomainEntityMapper<Enrollment> { public void delete(final long inEnrollmentId) { Enrollment enrollment = findById(inEnrollmentId); getEntityManager().remove(enrollment); } EnrollmentMapper(final QueryOptimizer inQueryOptimizer, final PersonMapper inPersonMapper); @SuppressWarnings("unchecked") List<Enrollment> findPersonEnrollmentsByOpenSocialId(final String inOpenSocialId); @SuppressWarnings("unchecked") List<Enrollment> findPersonEnrollmentsById(final Long inId); void delete(final long inEnrollmentId); void flush(final String uuid);  }