-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLeaveRequest.java
More file actions
27 lines (23 loc) · 865 Bytes
/
LeaveRequest.java
File metadata and controls
27 lines (23 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package TaskManagerProject;
import java.time.LocalDate;
import java.util.UUID;
class LeaveRequest {
private UUID leaveId;
private Employee employee;
private String leaveType;
private LocalDate startDate;
private LocalDate endDate;
private String status;
public LeaveRequest(Employee employee, String leaveType, LocalDate startDate, LocalDate endDate) {
this.leaveId = UUID.randomUUID();
this.employee = employee;
this.leaveType = leaveType.toUpperCase();
this.startDate = startDate;
this.endDate = endDate;
this.status = "PENDING";
}
public UUID getLeaveId() { return leaveId; }
public Employee getEmployee() { return employee; }
public String getStatus() { return status; }
public void setStatus(String status) { this.status = status; }
}