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
FieldsModifier and TypeFieldDescriptionprivate DateThe creation date of theRequest.private longThe duration of theRequest.private @NonNull DateThe end date of theRequest.private @NonNull LocalTimeThe end time of theRequest.private UUIDThe unique identifier of theRequest.private @NonNull RequestTypeTheRequestTypeof theRequest.private @NonNull DateThe start date of theRequest.private @NonNull LocalTimeThe start time of theRequest.private DateThe last update date of theRequest.private @NonNull Worker -
Constructor Summary
Constructors -
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
TheRequestTypeof theRequest. -
createdAt
The creation date of theRequest. -
updatedAt
The last update date of theRequest.
-
-
Constructor Details
-
Request
public Request()
-
-
Method Details