1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 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
| public class UserModel { private int id; private String username; private String sex; private int age; private String school; private String major; private String address;
public UserModel() { super(); }
public UserModel(int id, String username, String sex, int age, String school, String major, String address) { super(); this.id = id; this.username = username; this.sex = sex; this.age = age; this.school = school; this.major = major; this.address = address; }
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 getSex() { return sex; }
public void setSex(String sex) { this.sex = sex; }
public int getAge() { return age; }
public void setAge(int age) { this.age = age; }
public String getSchool() { return school; }
public void setSchool(String school) { this.school = school; }
public String getMajor() { return major; }
public void setMajor(String major) { this.major = major; }
public String getAddress() { return address; }
public void setAddress(String address) { this.address = address; }
@Override public String toString() { return "UserModel{" + "id=" + id + ", username='" + username + '\'' + ", sex='" + sex + '\'' + ", age=" + age + ", school='" + school + '\'' + ", major='" + major + '\'' + ", address='" + address + '\'' + '}'; } }
|