- Changement des noms de variables
- Ajout des getters/setters appropriés - Ajout des constructeur nécessaires
This commit is contained in:
@ -10,6 +10,33 @@ public class Secretary {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.AUTO)
|
||||
private int id;
|
||||
private int RegNo;
|
||||
private String Faculty;
|
||||
private int regNo;
|
||||
private String faculty;
|
||||
|
||||
public Secretary(int regNo, String faculty){
|
||||
this.regNo = regNo;
|
||||
this.faculty = faculty;
|
||||
}
|
||||
|
||||
public Secretary() {}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public int getRegNo() {
|
||||
return regNo;
|
||||
}
|
||||
|
||||
public void setRegNo(int regNo) {
|
||||
this.regNo = regNo;
|
||||
}
|
||||
|
||||
public String getFaculty() {
|
||||
return faculty;
|
||||
}
|
||||
|
||||
public void setFaculty(String faculty) {
|
||||
this.faculty = faculty;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user