Class FindConsultationByIdUseCase

java.lang.Object
com.mirna.hospitalmanagementapi.application.usecase.consultation.FindConsultationByIdUseCase

@Component public class FindConsultationByIdUseCase extends Object
This class is used to execute the findById method from consultation repository
Version:
1.0
Author:
Mirna Gama
  • Constructor Details

    • FindConsultationByIdUseCase

      public FindConsultationByIdUseCase()
  • Method Details

    • execute

      public Consultation execute(Long id)
      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