package com.sxyz.rfid.greendao.model;

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

/**
 * @Description: java类作用描述
 * @Author: chunyuan.wu
 * @CreateDate: 5/12/23 5:54 PM
 * @Version: 1.0
 */
//@Entity 表明这个实体类会在数据库中生成一个与之相对应的表
@Entity
public class Out {

    //@Id 对应数据表中的 Id 字段
    @Id(autoincrement = true)
    private Long id;//这里的坑要注意，如果id自增的话，必须必须定义id类型为大写的Long，小写的会报错。
    //    @Index(unique = true)
    private String name;
    private String type;
    @Generated(hash = 577857007)
    public Out(Long id, String name, String type) {
        this.id = id;
        this.name = name;
        this.type = type;
    }
    @Generated(hash = 1304904767)
    public Out() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getName() {
        return this.name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getType() {
        return this.type;
    }
    public void setType(String type) {
        this.type = type;
    }

}
