реализация get, но пока ещё с ошибками

This commit is contained in:
lynxwq2
2025-11-26 16:04:30 +03:00
parent 0ea199cd6b
commit 5295d49a44
5 changed files with 80 additions and 5 deletions

View File

@@ -31,4 +31,25 @@ public class Employee {
@OneToMany(mappedBy = "employee", cascade = CascadeType.ALL, fetch = FetchType.LAZY)
private List<Booking> bookingList;
public Employee(long id, String name){
this.id = id;
this.name = name;
}
public long getId() {
return id;
}
public String getName() {
return name;
}
public void setId(long id) {
this.id = id;
}
public void setName(String name) {
this.name = name;
}
}