Class FestivalPerformance

java.lang.Object
org.localify.festival.jpa.FestivalPerformance

@Entity public class FestivalPerformance extends Object
Represents a performance at a festival. This class mimics the behavior of an Event.
  • Constructor Details

    • FestivalPerformance

      protected FestivalPerformance()
      Protected no-arg constructor for JPA.
    • FestivalPerformance

      public FestivalPerformance(Instant startTime)
      Constructs a new FestivalPerformance.
      Parameters:
      startTime - The start time of the performance.
  • Method Details

    • getId

      public UUID getId()
      Gets the ID of the performance.
      Returns:
      The performance ID.
    • setId

      public void setId(UUID id)
      Sets the ID of the performance.
      Parameters:
      id - The performance ID.
    • getName

      public String getName()
      Gets the name of the performance.
      Returns:
      The performance name.
    • setName

      public void setName(String name)
      Sets the name of the performance.
      Parameters:
      name - The performance name.
    • getCreatedAt

      public Instant getCreatedAt()
      Gets the creation timestamp.
      Returns:
      The creation timestamp.
    • setCreatedAt

      public void setCreatedAt(Instant createdAt)
      Sets the creation timestamp.
      Parameters:
      createdAt - The creation timestamp.
    • getUpdatedAt

      public Instant getUpdatedAt()
      Gets the last update timestamp.
      Returns:
      The last update timestamp.
    • setUpdatedAt

      public void setUpdatedAt(Instant updatedAt)
      Sets the last update timestamp.
      Parameters:
      updatedAt - The last update timestamp.
    • getStage

      public FestivalStage getStage()
      Gets the stage of the performance.
      Returns:
      The stage.
    • setStage

      public void setStage(FestivalStage stage)
      Sets the stage of the performance.
      Parameters:
      stage - The stage.
    • getStartTime

      public Instant getStartTime()
      Gets the start time of the performance.
      Returns:
      The start time.
    • setStartTime

      public void setStartTime(Instant startTime)
      Sets the start time of the performance.
      Parameters:
      startTime - The start time.
    • getEndTime

      public Instant getEndTime()
      Gets the end time of the performance.
      Returns:
      The end time.
    • setEndTime

      public void setEndTime(Instant endTime)
      Sets the end time of the performance.
      Parameters:
      endTime - The end time.
    • toResponse

      public FestivalPerformanceResponse toResponse()
      Converts the performance to a response DTO.
      Returns:
      The performance response DTO.