コード例 #1
0
 @Override
 public PersonDto getPersonById(Long personId) throws ApplicationException {
   Person person = personRepository.findOne(personId);
   return personConvertor.convertBean(person);
 }
コード例 #2
0
 @Override
 public PersonDto savePerson(PersonDto personDto) throws ApplicationException {
   Person person = personConvertor.convert(personDto);
   person = personRepository.save(person);
   return personConvertor.convertBean(person);
 }