- Changement des noms de variables

- Ajout des getters/setters appropriés
- Ajout des constructeur nécessaires
This commit is contained in:
2024-03-03 17:42:26 +01:00
parent bbe1f9767c
commit 684c3095eb
8 changed files with 232 additions and 45 deletions

View File

@ -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;
}
}