package com.example.iot_controlhost.model;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;

import java.util.Date;

/**
 * 蚕期
 * 数据库
 */
@Entity
public class Silkworm {
    @Id(autoincrement = true)
    private Long id;
    /**
     * 蚕季名
     */
    private String name;

    /**
     * 开始日期
     */
    private Date StartDate;
    /**
     * 结束日期
     */
    private Date EndDate;
    /**
     * 数量
     */
    private int number;
    /**
     * 品种
     */
    private String variety;

    @Generated(hash = 539743088)
    public Silkworm(Long id, String name, Date StartDate, Date EndDate, int number,
            String variety) {
        this.id = id;
        this.name = name;
        this.StartDate = StartDate;
        this.EndDate = EndDate;
        this.number = number;
        this.variety = variety;
    }

    @Generated(hash = 222488988)
    public Silkworm() {
    }

    public String getName() {
        return name;
    }

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

    public Date getStartDate() {
        return StartDate;
    }

    public void setStartDate(Date startDate) {
        StartDate = startDate;
    }

    public Date getEndDate() {
        return EndDate;
    }

    public void setEndDate(Date endDate) {
        EndDate = endDate;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public String getVariety() {
        return variety;
    }

    public void setVariety(String variety) {
        this.variety = variety;
    }

    public Long getId() {
        return this.id;
    }

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