Class FindConsultationByIdUseCase
java.lang.Object
com.mirna.hospitalmanagementapi.application.usecase.consultation.FindConsultationByIdUseCase
This class is used to execute the findById method from consultation repository
- Version:
- 1.0
- Author:
- Mirna Gama
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExecutes the findById method from Consultation repository
-
Constructor Details
-
FindConsultationByIdUseCase
public FindConsultationByIdUseCase()
-
-
Method Details
-
execute
Executes the findById method from Consultation repository- Parameters:
id- A long representing the consultation's unique identifier- Returns:
- The corresponding consultation if successful, or null if it is non-existent
-