@Test public void testDelete() { final long backgroundId = 1042L; Background background = jpaBackgroundMapper.findById(backgroundId); jpaBackgroundMapper.delete(background); try { background = jpaBackgroundMapper.findById(backgroundId); } catch (NoResultException e) { background = null; } assertNull("The background was not deleted", background); }
public void delete(final Background inBackground) { getEntityManager().remove(inBackground); }
BackgroundMapper extends DomainEntityMapper<Background> { public void delete(final Background inBackground) { getEntityManager().remove(inBackground); } }
BackgroundMapper extends DomainEntityMapper<Background> { public void delete(final Background inBackground) { getEntityManager().remove(inBackground); } BackgroundMapper(final QueryOptimizer inQueryOptimizer, final PersonMapper inPersonMapper); }
BackgroundMapper extends DomainEntityMapper<Background> { public void delete(final Background inBackground) { getEntityManager().remove(inBackground); } BackgroundMapper(final QueryOptimizer inQueryOptimizer, final PersonMapper inPersonMapper); @SuppressWarnings("unchecked") Background findPersonBackground(final String inOpenSocialId); void delete(final Background inBackground); void deleteItem(final BackgroundItem item); @SuppressWarnings("unchecked") Background findOrCreatePersonBackground(final String inOpenSocialId); @SuppressWarnings("unchecked") List<String> findBackgroundItemNamesByType(final BackgroundItemType backgroundType,
            final String searchString, final int maxResults); void flush(final String uuid); }
BackgroundMapper extends DomainEntityMapper<Background> { public void delete(final Background inBackground) { getEntityManager().remove(inBackground); } BackgroundMapper(final QueryOptimizer inQueryOptimizer, final PersonMapper inPersonMapper); @SuppressWarnings("unchecked") Background findPersonBackground(final String inOpenSocialId); void delete(final Background inBackground); void deleteItem(final BackgroundItem item); @SuppressWarnings("unchecked") Background findOrCreatePersonBackground(final String inOpenSocialId); @SuppressWarnings("unchecked") List<String> findBackgroundItemNamesByType(final BackgroundItemType backgroundType,
            final String searchString, final int maxResults); void flush(final String uuid);  }