You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
91 lines
1.4 KiB
91 lines
1.4 KiB
package com.system.entity;
|
|
|
|
public class Student {
|
|
|
|
private int sno;
|
|
private String clas;
|
|
private String name;
|
|
private String gender;
|
|
private int age;
|
|
private String major;
|
|
private String dept;
|
|
|
|
public Student() {
|
|
super();
|
|
}
|
|
|
|
public Student(int sno, String clas, String name, String gender, int age, String major, String dept) {
|
|
super();
|
|
this.sno = sno;
|
|
this.clas = clas;
|
|
this.name = name;
|
|
this.gender = gender;
|
|
this.age = age;
|
|
this.major = major;
|
|
this.dept = dept;
|
|
}
|
|
|
|
public int getSno() {
|
|
return sno;
|
|
}
|
|
|
|
public void setSno(int sno) {
|
|
this.sno = sno;
|
|
}
|
|
|
|
public String getClas() {
|
|
return clas;
|
|
}
|
|
|
|
public void setClas(String clas) {
|
|
this.clas = clas;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public String getGender() {
|
|
return gender;
|
|
}
|
|
|
|
public void setGender(String gender) {
|
|
this.gender = gender;
|
|
}
|
|
|
|
public int getAge() {
|
|
return age;
|
|
}
|
|
|
|
public void setAge(int age) {
|
|
this.age = age;
|
|
}
|
|
|
|
public String getMajor() {
|
|
return major;
|
|
}
|
|
|
|
public void setMajor(String major) {
|
|
this.major = major;
|
|
}
|
|
|
|
public String getDept() {
|
|
return dept;
|
|
}
|
|
|
|
public void setDept(String dept) {
|
|
this.dept = dept;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "Student [sno=" + sno + ", clas=" + clas + ", name=" + name + ", gender=" + gender + ", age=" + age
|
|
+ ", major=" + major + ", dept=" + dept + "]";
|
|
}
|
|
|
|
}
|