Student.java 2.0 KB
Newer Older
7
7wc98#14 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
//IntelliJ IDEA
//campus
//Student
//2020/5/4
// Author:御承扬
//E-mail:2923616405@qq.com

package com.pyc.campus.domain;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

@Entity
public class Student {
    @Id
    @GeneratedValue
    private Long id;
    private String name;
    private String studentID;
    private String password;
    private String weChat;
    private String QQ;
7
Update  
7wc98#14 已提交
24
    private int admin;
7
modify  
7wc98#14 已提交
25
    private boolean onlineStatus;
7
Update  
7wc98#14 已提交
26

7
7wc98#14 已提交
27 28 29
    public Student() {
        super();
    }
7
Update  
7wc98#14 已提交
30 31

    public Student(String name, String studentID, String password, String weChat, String QQ, int admin) {
7
7wc98#14 已提交
32
        super();
7
Update  
7wc98#14 已提交
33 34
        this.name = name;
        this.studentID = studentID;
7
7wc98#14 已提交
35 36 37
        this.password = password;
        this.weChat = weChat;
        this.QQ = QQ;
7
Update  
7wc98#14 已提交
38
        this.admin = admin;
7
modify  
7wc98#14 已提交
39
        this.onlineStatus=false;
7
Update  
7wc98#14 已提交
40 41 42 43 44 45
    }

    public void setAdmin(int admin) {
        this.admin = admin;
    }

7
modify  
7wc98#14 已提交
46 47 48 49 50 51 52 53
    public boolean isOnlineStatus() {
        return onlineStatus;
    }

    public void setOnlineStatus(boolean onlineStatus) {
        this.onlineStatus = onlineStatus;
    }

7
Update  
7wc98#14 已提交
54 55
    public int getAdmin() {
        return admin;
7
7wc98#14 已提交
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
    }

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

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

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

    public void setStudentID(String studentID) {
        this.studentID = studentID;
    }

    public void setQQ(String QQ) {
        this.QQ = QQ;
    }

    public void setWeChat(String weChat) {
        this.weChat = weChat;
    }

    public Long getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getPassword() {
        return password;
    }

    public String getQQ() {
        return QQ;
    }

    public String getStudentID() {
        return studentID;
    }

    public String getWeChat() {
        return weChat;
    }
}