package com.yeejoin.amos.connect.dao.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="i_transmit_mapper")
public class TransmitMapper {
    @Id
    @GeneratedValue(strategy= GenerationType.AUTO)
    @Column(name = "ID",nullable=false,unique=true)
    private Long id;
//    @Column(columnDefinition = "comment '映射类型（UART,IEC104）'")
    private String mapperType;
//    @Column(columnDefinition = "comment '转发接收方地址（IP）'")
    private String transmitIp;
//    @Column(columnDefinition = "comment '转发接收方端口号'")
    private String transmitPort;
//    @Column(columnDefinition = "comment '转发方式（TCP,UDP,HTTP）'")
    private String transmitType;

//    @Column(columnDefinition = "comment '转发地址'")
    private String transmitUrl;
//    @Column(columnDefinition = "comment '映射ID'")
    private Long mapperId;

    public Long getId() {
        return id;
    }

    public String getMapperType() {
        return mapperType;
    }

    public String getTransmitIp() {
        return transmitIp;
    }

    public String getTransmitPort() {
        return transmitPort;
    }

    public String getTransmitType() {
        return transmitType;
    }

    public String getTransmitUrl() {
        return transmitUrl;
    }

    public Long getMapperId() {
        return mapperId;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setMapperType(String mapperType) {
        this.mapperType = mapperType;
    }

    public void setTransmitIp(String transmitIp) {
        this.transmitIp = transmitIp;
    }

    public void setTransmitPort(String transmitPort) {
        this.transmitPort = transmitPort;
    }

    public void setTransmitType(String transmitType) {
        this.transmitType = transmitType;
    }

    public void setTransmitUrl(String transmitUrl) {
        this.transmitUrl = transmitUrl;
    }

    public void setMapperId(Long mapperId) {
        this.mapperId = mapperId;
    }
}
