java.lang.Object
com.mirna.hospitalmanagementapi.domain.entities.Doctor

@Entity(name="Doctor") public class Doctor extends Object
Version:
1.0
Author:
Mirna Gama
  • Constructor Details

    • Doctor

      public Doctor(DoctorDTO doctorDTO)
      Constructor for class Doctor
      Parameters:
      doctorDTO - Data transfer object containing Doctor entity information
      See Also:
    • Doctor

      public Doctor()
  • Method Details

    • getId

      public Long getId()
      Returns the doctor id.
      Returns:
      A Long representing the doctor id.
    • setId

      public void setId(Long id)
      Sets the doctor id.
      Parameters:
      id - The doctor's unique identifier.
    • getName

      public String getName()
      Returns the name
      Returns:
      A string representing the doctor's name.
    • setName

      public void setName(String name)
      Sets the name
      Parameters:
      name - Must not be blank.
    • getEmail

      public String getEmail()
      Returns the email
      Returns:
      A string representing the doctor's email.
    • setEmail

      public void setEmail(String email)
      Sets the email
      Parameters:
      email - Must not be blank.
    • getCrm

      public String getCrm()
      Returns the crm
      Returns:
      A string representing the doctor's crm.
    • setCrm

      public void setCrm(String crm)
      Sets the crm
      Parameters:
      crm - Must not be blank.
    • getTelephone

      public String getTelephone()
      Returns the telephone
      Returns:
      A string representing the doctor's telephone.
    • setTelephone

      public void setTelephone(String telephone)
      Sets the telephone
      Parameters:
      telephone - Must not be blank.
    • getSpecialty

      public Specialty getSpecialty()
      Returns the specialty
      Returns:
      An enum class representing the doctor's specialty.
      See Also:
    • setSpecialty

      public void setSpecialty(Specialty specialty)
      Sets the specialty
      Parameters:
      specialty - Must not be null.
    • getAddress

      public Address getAddress()
      Returns the address
      Returns:
      An object class representing the doctor's address.
      See Also:
    • setAddress

      public void setAddress(Address address)
      Sets the address
      Parameters:
      address - Must not be null.