/** delete the project by id. */ public void delete(Long id) { log.debug("Request to delete Project : {}", id); projectRepository.delete(id); projectSearchRepository.delete(id); }
/** * get all the projects. * * @return the list of entities */ @Transactional(readOnly = true) public Page<Project> findAll(Pageable pageable) { log.debug("Request to get all Projects"); Page<Project> result = projectRepository.findAll(pageable); return result; }
/** * get one project by id. * * @return the entity */ @Transactional(readOnly = true) public Project findOne(Long id) { log.debug("Request to get Project : {}", id); Project project = projectRepository.findOne(id); return project; }
/** * Save a project. * * @return the persisted entity */ public Project save(Project project) { log.debug("Request to save Project : {}", project); Project result = projectRepository.save(project); projectSearchRepository.save(result); return result; }