api: Add setters and getters

pull/1/head
Lunix-420 2024-10-30 21:23:51 +01:00
parent 007c4ed3e1
commit ba7aed631b
7 changed files with 198 additions and 2 deletions

View File

@ -29,4 +29,60 @@ public class Employee {
private LocalTime dStart;
private LocalTime dEnd;
public void setEmployeeNr(Integer employeeNr) {
this.employeeNr = employeeNr;
}
public Integer getEmployeeNr() {
return employeeNr;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String getFirstName() {
return firstName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public String getLastName() {
return lastName;
}
public void setFormOfAddress(FormOfAddress formOfAddress) {
this.formOfAddress = formOfAddress;
}
public FormOfAddress getFormOfAddress() {
return formOfAddress;
}
public void setMail(String mail) {
this.mail = mail;
}
public String getMail() {
return mail;
}
public void setDStart(LocalTime dStart) {
this.dStart = dStart;
}
public LocalTime getDStart() {
return dStart;
}
public void setDEnd(LocalTime dEnd) {
this.dEnd = dEnd;
}
public LocalTime getDEnd() {
return dEnd;
}
}

View File

@ -13,4 +13,20 @@ public class FormOfAddress {
@Column(nullable = false, length = 50)
private String description;
public void setId(Long id) {
this.id = id;
}
public Long getId() {
return id;
}
public void setDescription(String description) {
this.description = description;
}
public String getDescription() {
return description;
}
}

View File

@ -16,5 +16,27 @@ public class PrimarySkill {
@OneToMany(mappedBy = "primarySkill", cascade = CascadeType.ALL, orphanRemoval = true)
private List<SecondarySkill> secondarySkills;
// TODO: Getters and Setters
public void setPsid(Long psid) {
this.psid = psid;
}
public Long getPsid() {
return psid;
}
public void setDescription(String description) {
this.description = description;
}
public String getDescription() {
return description;
}
public void setSecondarySkills(List<SecondarySkill> secondarySkills) {
this.secondarySkills = secondarySkills;
}
public List<SecondarySkill> getSecondarySkills() {
return secondarySkills;
}
}

View File

@ -22,4 +22,44 @@ public class Project {
@Column(columnDefinition = "TEXT")
private String description;
public void setName(String name) {
this.name = name;
}
public String getName() {
return name;
}
public void setStartDate(LocalDate startDate) {
this.startDate = startDate;
}
public LocalDate getStartDate() {
return startDate;
}
public void setEndDate(LocalDate endDate) {
this.endDate = endDate;
}
public LocalDate getEndDate() {
return endDate;
}
public void setWorkload(Integer workload) {
this.workload = workload;
}
public Integer getWorkload() {
return workload;
}
public void setDescription(String description) {
this.description = description;
}
public String getDescription() {
return description;
}
}

View File

@ -18,4 +18,20 @@ public class ProjectAssignment {
@ManyToOne
@JoinColumn(name = "EID", nullable = false)
private Employee employee;
public void setProject(Project project) {
this.project = project;
}
public Project getProject() {
return project;
}
public void setEmployee(Employee employee) {
this.employee = employee;
}
public Employee getEmployee() {
return employee;
}
}

View File

@ -16,5 +16,27 @@ public class SecondarySkill {
@JoinColumn(name = "psid", nullable = false)
private PrimarySkill primarySkill;
// Getters and Setters
public void setSsid(Long ssid) {
this.ssid = ssid;
}
public Long getSsid() {
return ssid;
}
public void setDescription(String description) {
this.description = description;
}
public String getDescription() {
return description;
}
public void setPrimarySkill(PrimarySkill primarySkill) {
this.primarySkill = primarySkill;
}
public PrimarySkill getPrimarySkill() {
return primarySkill;
}
}

View File

@ -25,4 +25,28 @@ public class SkillAssignment {
@Column(nullable = false)
@Enumerated(EnumType.ORDINAL)
private SkillLevel level;
public void setEmployee(Employee employee) {
this.employee = employee;
}
public Employee getEmployee() {
return employee;
}
public void setSecondarySkill(SecondarySkill secondarySkill) {
this.secondarySkill = secondarySkill;
}
public SecondarySkill getSecondarySkill() {
return secondarySkill;
}
public void setLevel(SkillLevel level) {
this.level = level;
}
public SkillLevel getLevel() {
return level;
}
}