| | |
| | | @PrimaryKey |
| | | @NonNull |
| | | @ColumnInfo(name = "stu_id") |
| | | private long stu_ID; |
| | | private long stu_id; |
| | | |
| | | @NonNull |
| | | @ColumnInfo(name = "name") |
| | |
| | | |
| | | //身份证 |
| | | @ColumnInfo(name = "ID") |
| | | private String mID; |
| | | private String ID; |
| | | |
| | | //性别 0-男 1-女 |
| | | @ColumnInfo(name = "sex") |
| | | private int sex; |
| | | |
| | | public long getStu_ID() { |
| | | return stu_ID; |
| | | public Student(long stu_id, @NonNull String name, String ID, int sex) { |
| | | this.stu_id = stu_id; |
| | | this.name = name; |
| | | this.ID = ID; |
| | | this.sex = sex; |
| | | } |
| | | |
| | | public void setStu_ID(long stu_ID) { |
| | | this.stu_ID = stu_ID; |
| | | public long getStu_id() { |
| | | return stu_id; |
| | | } |
| | | |
| | | public void setStu_id(long stu_ID) { |
| | | this.stu_id = stu_ID; |
| | | } |
| | | |
| | | public String getID() { |
| | | return mID; |
| | | return ID; |
| | | } |
| | | |
| | | public void setID(String mID) { |
| | | this.mID = mID; |
| | | this.ID = mID; |
| | | } |
| | | |
| | | public int getSex() { |
| | |
| | | @Override |
| | | public String toString() { |
| | | return "Student{" + |
| | | "stu_ID=" + stu_ID + |
| | | "stu_ID=" + stu_id + |
| | | ", name='" + name + '\'' + |
| | | ", mID='" + mID + '\'' + |
| | | ", ID='" + ID + '\'' + |
| | | ", sex=" + sex + |
| | | '}'; |
| | | } |