Пример #1
0
 @Override
 public PlanInfo findByProjects(Projects projects) {
   PlanInfo planInfo = repository.findPlanInfoByProjectsId(projects.getId());
   if (planInfo == null) {
     planInfo = new PlanInfo(projects);
     repository.save(planInfo);
   }
   return planInfo;
 }
Пример #2
0
 @Override
 public PlanInfo update(PlanInfo planInfo) {
   return repository.save(planInfo);
 }