예제 #1
0
파일: Vehicle.java 프로젝트: ndong211/bo
 public VehicleDTO toDTO() {
   VehicleDTO vehicleDTO = new VehicleDTO();
   vehicleDTO.setId(this.getId());
   vehicleDTO.setShopId(this.getShopId());
   vehicleDTO.setLicenceAreaId(this.getLicenceAreaId());
   vehicleDTO.setLicenceNo(this.getLicenceNo());
   vehicleDTO.setLicenceNoRevert(this.getLicenceNoRevert());
   vehicleDTO.setEngineNo(this.getEngineNo());
   vehicleDTO.setVin(this.getVin());
   vehicleDTO.setCarDate(this.getCarDate());
   vehicleDTO.setCarId(this.getCarId());
   vehicleDTO.setBrand(this.getBrand());
   vehicleDTO.setMfr(this.getMfr());
   vehicleDTO.setModel(this.getModel());
   vehicleDTO.setYear(this.getYear());
   vehicleDTO.setTrim(this.getTrim());
   vehicleDTO.setColor(this.getColor());
   vehicleDTO.setMemo(this.getMemo());
   vehicleDTO.setEngine(this.getEngine());
   vehicleDTO.setStartMileage(this.getStartMileage());
   vehicleDTO.setBrandId(this.getBrandId());
   vehicleDTO.setMfrId(this.getMfrId());
   vehicleDTO.setModelId(this.getModelId());
   vehicleDTO.setYearId(this.getYearId());
   vehicleDTO.setEngineId(this.getEngineId());
   vehicleDTO.setChassisNumber(this.getChassisNumber());
   vehicleDTO.setStatus(this.getStatus());
   vehicleDTO.setContact(this.getContact());
   vehicleDTO.setMobile(this.getMobile());
   vehicleDTO.setColor(this.getColor());
   vehicleDTO.setObdMileage(this.getObdMileage());
   vehicleDTO.setMileageLastUpdateTime(this.getMileageLastUpdateTime());
   vehicleDTO.setObdId(this.getObdId());
   vehicleDTO.setGsmObdImei(this.getGsmObdImei());
   vehicleDTO.setGsmObdImeiMoblie(this.getGsmObdImeiMoblie());
   vehicleDTO.setLastObdMileage(this.getLastObdMileage());
   return vehicleDTO;
 }
예제 #2
0
파일: Vehicle.java 프로젝트: ndong211/bo
 public Vehicle fromDTO(VehicleDTO vehicleDTO) {
   this.setId(vehicleDTO.getId());
   this.setShopId(vehicleDTO.getShopId());
   this.setLicenceAreaId(vehicleDTO.getLicenceAreaId());
   this.setLicenceNo(vehicleDTO.getLicenceNo());
   this.setLicenceNoRevert(vehicleDTO.getLicenceNoRevert());
   this.setEngineNo(vehicleDTO.getEngineNo());
   this.setVin(vehicleDTO.getVin());
   this.setCarDate(vehicleDTO.getCarDate());
   this.setCarId(vehicleDTO.getCarId());
   this.setBrand(vehicleDTO.getBrand());
   this.setMfr(vehicleDTO.getMfr());
   this.setModel(vehicleDTO.getModel());
   this.setYear(vehicleDTO.getYear());
   this.setTrim(vehicleDTO.getTrim());
   this.setColor(vehicleDTO.getColor());
   this.setMemo(vehicleDTO.getMemo());
   this.setEngine(vehicleDTO.getEngine());
   this.setStartMileage(vehicleDTO.getStartMileage());
   this.setBrandId(vehicleDTO.getBrandId());
   this.setMfrId(vehicleDTO.getMfrId());
   this.setModelId(vehicleDTO.getModelId());
   this.setYearId(vehicleDTO.getYearId());
   this.setEngineId(vehicleDTO.getEngineId());
   this.setChassisNumber(vehicleDTO.getChassisNumber());
   this.setStatus(vehicleDTO.getStatus());
   this.setContact(vehicleDTO.getContact());
   this.setMobile(vehicleDTO.getMobile());
   this.setObdMileage(vehicleDTO.getObdMileage());
   this.setObdId(vehicleDTO.getObdId());
   this.setGsmObdImei(vehicleDTO.getGsmObdImei());
   this.setGsmObdImeiMoblie(vehicleDTO.getGsmObdImeiMoblie());
   this.setLastObdMileage(vehicleDTO.getLastObdMileage());
   return this;
 }