Package it.univr.passportease.entity
Class Request
java.lang.Object
it.univr.passportease.entity.Request
The
Request
class is an entity that represents a request made by a Worker
to the RequestType
of his choice. It contains the Worker
that made the request, the RequestType
of the
request, the duration of the request, the start and end date and time of the request, and the creation and update
date of the request.-
Field Summary
Modifier and TypeFieldDescriptionprivate Date
The creation date of theRequest
.private long
The duration of theRequest
.private @NonNull Date
The end date of theRequest
.private @NonNull LocalTime
The end time of theRequest
.private UUID
The unique identifier of theRequest
.private @NonNull RequestType
TheRequestType
of theRequest
.private @NonNull Date
The start date of theRequest
.private @NonNull LocalTime
The start time of theRequest
.private Date
The last update date of theRequest
.private @NonNull Worker
-
Constructor Summary
-
Method Summary
-
Field Details
-
id
The unique identifier of theRequest
. -
duration
private long durationThe duration of theRequest
. -
startDate
The start date of theRequest
. -
endDate
The end date of theRequest
. -
startTime
The start time of theRequest
. -
endTime
The end time of theRequest
. -
worker
-
requestType
TheRequestType
of theRequest
. -
createdAt
The creation date of theRequest
. -
updatedAt
The last update date of theRequest
.
-
-
Constructor Details
-
Request
public Request()
-
-
Method Details