package com.example.sleep.database;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
//声明实体类
@Entity
public class UserBean {
    @Id(autoincrement = true)

    private Long id;

    private String username;
    private String password;

    @Generated(hash = 2052951463)
    public UserBean(Long id, String username, String password) {
        this.id = id;
        this.username = username;
        this.password = password;
    }

    @Generated(hash = 1203313951)
    public UserBean() {
    }
    //对设置的值进行set和get操作
    public Long getId() {
        return this.id;
    }

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

    public String getUsername() {
        return this.username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return this.password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}