package com.huimv.eartag.dao.entity;

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

@Entity
@Table(name = "base_farm")
public class BaseFarmEntity 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 = "farm_name")
    private String farmName;

    @Column(name = "location")
    private String location;

    @Column(name = "leader")
    private String leader;

    @Column(name = "phone")
    private String phone;

    @Column(name = "remark")
    private String remark;

    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 setFarmName(String farmName) {
        this.farmName = farmName;
    }

    public String getFarmName() {
        return farmName;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getLocation() {
        return location;
    }

    public void setLeader(String leader) {
        this.leader = leader;
    }

    public String getLeader() {
        return leader;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPhone() {
        return phone;
    }

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

    public String getRemark() {
        return remark;
    }

    @Override
    public String toString() {
        return "BaseFarmEntity{" +
                "id=" + id + '\'' +
                "farmId=" + farmId + '\'' +
                "farmName=" + farmName + '\'' +
                "location=" + location + '\'' +
                "leader=" + leader + '\'' +
                "phone=" + phone + '\'' +
                "remark=" + remark + '\'' +
                '}';
    }
}
