@Override @Transactional public void remove(ApprovedSite approvedSite) { ApprovedSite found = manager.find(ApprovedSite.class, approvedSite.getId()); if (found != null) { manager.remove(found); } else { throw new IllegalArgumentException(); } }
@Override @Transactional public ApprovedSite save(ApprovedSite approvedSite) { return saveOrUpdate(approvedSite.getId(), manager, approvedSite); }