package jp.ac.nii.prl.mape.plan.service;

import java.util.Optional;

import org.springframework.beans.factory.annotation.Autowired;

import jp.ac.nii.prl.mape.plan.model.Adaptation;
import jp.ac.nii.prl.mape.plan.repository.AdaptationRepository;

public class AdaptationServiceImpl implements AdaptationService {

	@Autowired
	private AdaptationRepository adaptationRepository;
	
	@Override
	public Adaptation save(Adaptation adaptation) {
		return adaptationRepository.save(adaptation);
	}

	@Override
	public Optional<Adaptation> findByDeploymentId(Integer deploymentId) {
		return adaptationRepository.findByDeploymentId(deploymentId);
	}

}

@@ -125,16 +125,63 @@
 towired;
+%0Aimport org.springframework.stereotype.Service;
 %0A%0Aimport
@@ -288,16 +288,46 @@
 itory;%0A%0A
+@Service(%22adaptationService%22)%0A
 public c

Fix adaptation service Bean issue