-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBedReservationDTO.java
More file actions
38 lines (36 loc) · 1.54 KB
/
BedReservationDTO.java
File metadata and controls
38 lines (36 loc) · 1.54 KB
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
28
29
30
31
32
33
34
35
36
37
38
package com.swyth.hospitalservice.dto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* Represents a Data Transfer Object (DTO) for reserving hospital beds.
*
* This class encapsulates the details required for reserving a hospital bed
* associated with a specific hospital and medical specialization. It serves
* as an intermediary object for transferring data between layers, such as
* between a client and service, or a service and repository.
*
* Attributes:
* - id: The unique identifier for the bed reservation.
* - hospitalId: The unique identifier of the hospital where the bed reservation is being made.
* - medicalSpecializationId: The unique identifier of the medical specialization related to the bed reservation.
*
* Usage Context:
* - This DTO is used primarily in operations that involve updating or querying
* hospital bed availability for specific medical specializations and hospitals.
* - It facilitates the transfer of the required data without exposing the complete
* internal details of the entities involved, such as hospital or specialization objects.
*
* Features:
* - Encapsulates the key details required for reserving a hospital bed.
* - Works with service methods that update or check hospital bed availability.
* - Simplifies service method inputs by wrapping necessary identifiers into a single object.
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BedReservationDTO {
private Long id;
private Long hospitalId;
private Long medicalSpecializationId;
}