@Secured({"ROLE_ADMIN"}) @Override public void delete(long id) { LOGGER.debug("Delete the company with id: {}", id); computerDAO.removeByCompany_Id(id); companyDAO.delete(id); }
@Secured({"ROLE_ADMIN"}) @Override public void delete(Company c) { LOGGER.debug("Delete the company : {}", c); computerDAO.removeByCompany(c); companyDAO.delete(c); }