| | |
| | | package com.moral.entity.adapter; |
| | | |
| | | import com.moral.entity.Device; |
| | | import lombok.AccessLevel; |
| | | import lombok.Data; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import javax.persistence.Transient; |
| | | |
| | | import static lombok.AccessLevel.*; |
| | | import com.moral.entity.DeviceProperty; |
| | | |
| | | public class EquDeviceAdapter { |
| | | private Device device; |
| | | public EquDeviceAdapter(){ |
| | | |
| | | private DeviceProperty deviceProperty; |
| | | |
| | | |
| | | public DeviceProperty getDeviceProperty() { |
| | | return deviceProperty; |
| | | } |
| | | public void setDeviceProperty(DeviceProperty deviceProperty) { |
| | | this.deviceProperty = deviceProperty; |
| | | } |
| | | public EquDeviceAdapter(){ |
| | | this.device = new Device(); |
| | | this.deviceProperty = new DeviceProperty(); |
| | | } |
| | | public void setDevice(Device device) { |
| | | this.device = device; |
| | |
| | | public void setProfessionId(Integer professionId) { |
| | | device.setProfessionId(professionId); |
| | | } |
| | | |
| | | public void setDeviceTech(Byte deviceTech) { |
| | | deviceProperty.setDeviceTech(deviceTech); |
| | | } |
| | | public void setExtC(String extC) { |
| | | deviceProperty.setExtC(extC); |
| | | } |
| | | public void setExtD(String extD) { |
| | | deviceProperty.setExtD(extD); |
| | | } |
| | | |
| | | public Device toDevice(){ |
| | | return device; |
| | | } |