Package org.localify.festival.jpa
Class FestivalPerformance
java.lang.Object
org.localify.festival.jpa.FestivalPerformance
Represents a performance at a festival.
This class mimics the behavior of an Event.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProtected no-arg constructor for JPA.FestivalPerformance(Instant startTime) Constructs a new FestivalPerformance. -
Method Summary
Modifier and TypeMethodDescriptionGets the creation timestamp.Gets the end time of the performance.getId()Gets the ID of the performance.getName()Gets the name of the performance.getStage()Gets the stage of the performance.Gets the start time of the performance.Gets the last update timestamp.voidsetCreatedAt(Instant createdAt) Sets the creation timestamp.voidsetEndTime(Instant endTime) Sets the end time of the performance.voidSets the ID of the performance.voidSets the name of the performance.voidsetStage(FestivalStage stage) Sets the stage of the performance.voidsetStartTime(Instant startTime) Sets the start time of the performance.voidsetUpdatedAt(Instant updatedAt) Sets the last update timestamp.Converts the performance to a response DTO.
-
Constructor Details
-
FestivalPerformance
protected FestivalPerformance()Protected no-arg constructor for JPA. -
FestivalPerformance
Constructs a new FestivalPerformance.- Parameters:
startTime- The start time of the performance.
-
-
Method Details
-
getId
Gets the ID of the performance.- Returns:
- The performance ID.
-
setId
Sets the ID of the performance.- Parameters:
id- The performance ID.
-
getName
Gets the name of the performance.- Returns:
- The performance name.
-
setName
Sets the name of the performance.- Parameters:
name- The performance name.
-
getCreatedAt
Gets the creation timestamp.- Returns:
- The creation timestamp.
-
setCreatedAt
Sets the creation timestamp.- Parameters:
createdAt- The creation timestamp.
-
getUpdatedAt
Gets the last update timestamp.- Returns:
- The last update timestamp.
-
setUpdatedAt
Sets the last update timestamp.- Parameters:
updatedAt- The last update timestamp.
-
getStage
Gets the stage of the performance.- Returns:
- The stage.
-
setStage
Sets the stage of the performance.- Parameters:
stage- The stage.
-
getStartTime
Gets the start time of the performance.- Returns:
- The start time.
-
setStartTime
Sets the start time of the performance.- Parameters:
startTime- The start time.
-
getEndTime
Gets the end time of the performance.- Returns:
- The end time.
-
setEndTime
Sets the end time of the performance.- Parameters:
endTime- The end time.
-
toResponse
Converts the performance to a response DTO.- Returns:
- The performance response DTO.
-