Class Preference

java.lang.Object
org.cswteams.ms3.entity.Preference

@Entity public class Preference extends Object
Represents a doctor's scheduling preference
See Also:
  • Constructor Details

    • Preference

      public Preference(LocalDate date, Set<TimeSlot> timeSlots, List<Doctor> doctors)
      Create a new Preference with the specified parameters.
      Parameters:
      date - The day of the preference
      timeSlots - The shift time slots relative to the preference day
      doctors - A list of doctors that have such preference
    • Preference

      public Preference(Long id, LocalDate date, Set<TimeSlot> timeSlots, List<Doctor> doctors)
      Create a new Preference with the specified parameters.
      Parameters:
      id - The id of the preference
      date - The day of the preference
      timeSlots - The shift time slots relative to the preference day
      doctors - A list of doctors that have such preference
    • Preference

      protected Preference()
      Default constructor needed by Lombok