Esempio n. 1
0
 /** delete the project by id. */
 public void delete(Long id) {
   log.debug("Request to delete Project : {}", id);
   projectRepository.delete(id);
   projectSearchRepository.delete(id);
 }
Esempio n. 2
0
 /**
  * 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;
 }
Esempio n. 3
0
 /**
  * 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;
 }
Esempio n. 4
0
 /**
  * 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;
 }