package com.qst.dms.entity;

//用户实体
public class User {
    // 用户id
    private int id;
    // 用户名
    private String username;
    // 密码
    private String password;
    // 性别
    private int sex;
    // 爱好
    private String hobby;
    // 地址
    private String address;
    // 学历
    private String degree;

    public int getId() {
        return id;
    }

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

    public String getUsername() {
        return username;
    }

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

    public String getPassword() {
        return password;
    }

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

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getHobby() {
        return hobby;
    }

    public void setHobby(String hobby) {
        this.hobby = hobby;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getDegree() {
        return degree;
    }

    public void setDegree(String degree) {
        this.degree = degree;
    }

    public User() {
    }

    public User(String username, String password, int sex, String hobby,
                String address, String degree) {
        this.username = username;
        this.password = password;
        this.sex = sex;
        this.hobby = hobby;
        this.address = address;
        this.degree = degree;
    }

    public User(int id, String username, String password, int sex,
                String hobby, String address, String degree) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.sex = sex;
        this.hobby = hobby;
        this.address = address;
        this.degree = degree;
    }
}
