package com.huimv.receiver.farm.dao.entity;

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

@Entity
@Table(name = "sys_camera_area")
public class SysCameraAreaEntity implements Serializable {

    private static final long serialVersionUID = 1L;

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

    /**
     * 区域(单元)名称
     */
    @Column(name = "area_name")
    private String areaName;

    /**
     * 不用管
     */
    @Column(name = "remark")
    private String remark;

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

    @Column(name = "public_url", nullable = false)
    private String publicUrl;

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

    public Integer getId() {
        return id;
    }

    /**
     * 区域(单元)名称
     */
    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    /**
     * 区域(单元)名称
     */
    public String getAreaName() {
        return areaName;
    }

    /**
     * 不用管
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    /**
     * 不用管
     */
    public String getRemark() {
        return remark;
    }

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

    public Integer getFarmId() {
        return farmId;
    }

    public void setPublicUrl(String publicUrl) {
        this.publicUrl = publicUrl;
    }

    public String getPublicUrl() {
        return publicUrl;
    }

    @Override
    public String toString() {
        return "SysCameraAreaEntity{" +
                "id=" + id + '\'' +
                "areaName=" + areaName + '\'' +
                "remark=" + remark + '\'' +
                "farmId=" + farmId + '\'' +
                "publicUrl=" + publicUrl + '\'' +
                '}';
    }
}
