예제 #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 void dele(Long id) {
   repository.delete(id);
 }
예제 #3
0
 @Override
 public PlanInfo update(PlanInfo planInfo) {
   return repository.save(planInfo);
 }
예제 #4
0
 @Override
 public PlanInfo findOne(Long id) {
   return repository.findOne(id);
 }