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;
import java.util.Date;

@Entity
@Table(name="i_uart_config")
public class UartVo {
    @Id
    @GeneratedValue(strategy= GenerationType.AUTO)
    @Column(name = "ID",nullable=false,unique=true)
    private Long id;

    private String name;

    private String remark;

    private String createBy;

    private Date createdTime;

    private String serialPort;

    private int baudRate;

    private int dataBits;

    private int stopBits;

    private int parity;

    private int isDelete;

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

    public void setName(String name) {
        this.name = name;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public void setSerialPort(String serialPort) {
        this.serialPort = serialPort;
    }

    public void setBaudRate(int baudRate) {
        this.baudRate = baudRate;
    }

    public void setDataBits(int dataBits) {
        this.dataBits = dataBits;
    }

    public void setStopBits(int stopBits) {
        this.stopBits = stopBits;
    }

    public void setParity(int parity) {
        this.parity = parity;
    }

    public void setIsDelete(int isDelete) {
        this.isDelete = isDelete;
    }

    public Long getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getRemark() {
        return remark;
    }

    public String getCreateBy() {
        return createBy;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public int getBaudRate() {
        return baudRate;
    }

    public int getDataBits() {
        return dataBits;
    }

    public int getStopBits() {
        return stopBits;
    }

    public int getParity() {
        return parity;
    }

    public int getIsDelete() {
        return isDelete;
    }

    public String getSerialPort() {
        return serialPort;
    }
}
