コード例 #1
0
  private SamplePO convertDto2Vo(final SampleDTO dto) {
    final SamplePO result = new SamplePO();
    result.setId(dto.getId());
    result.setName(dto.getName());
    result.setPhone(dto.getPhone());

    return result;
  }
コード例 #2
0
  private SampleDTO convertVo2Dto(final SamplePO vo) {
    final SampleDTO result = new SampleDTO();
    result.setId(vo.getId());
    result.setName(vo.getName());
    result.setPhone(vo.getPhone());

    return result;
  }