예제 #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);
 }