@Override @Transactional(readOnly = false) public void deleteCompany(long id) { LOGGER.info("Delete company by id: " + id); companyValidator.checkId(id); // We first delete all the computers associated to the company that // we will delete computerDao.deleteComputersForCompanyId(id); // And finally we delete the company itself companyDao.deleteCompany(id); }