package com.huimv.eartag.dao.entity;

import javax.persistence.*;
import java.io.Serializable;

@Entity
@Table(name = "base_farm_server_config")
public class BaseFarmServerConfigEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", nullable = false)
    private Integer id;

    @Column(name = "farm_id")
    private Integer farmId;

    @Column(name = "server_ip")
    private String serverIp;

    @Column(name = "server_port")
    private Integer serverPort;

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

    public Integer getId() {
        return id;
    }

    public void setFarmId(Integer farmId) {
        this.farmId = farmId;
    }

    public Integer getFarmId() {
        return farmId;
    }

    public void setServerIp(String serverIp) {
        this.serverIp = serverIp;
    }

    public String getServerIp() {
        return serverIp;
    }

    public void setServerPort(Integer serverPort) {
        this.serverPort = serverPort;
    }

    public Integer getServerPort() {
        return serverPort;
    }

    @Override
    public String toString() {
        return "BaseFarmServerConfigEntity{" +
                "id=" + id + '\'' +
                "farmId=" + farmId + '\'' +
                "serverIp=" + serverIp + '\'' +
                "serverPort=" + serverPort + '\'' +
                '}';
    }
}
