Package org.localify.festival.jpa
Class FestivalStage
java.lang.Object
org.localify.festival.jpa.FestivalStage
Represents a stage at a festival.
This class mimics the behavior of a Venue.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProtected no-arg constructor for JPA.FestivalStage(String name, Festival festival) Constructs a new FestivalStage. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the address of the stage.Gets the creation timestamp.Gets the festival the stage belongs to.org.locationtech.jts.geom.PointGets the geographic point of the stage.getId()Gets the ID of the stage.getName()Gets the name of the stage.Gets the last update timestamp.getVenue()Gets the venue associated with the stage.inthashCode()voidsetAddress(String address) Sets the address of the stage.voidsetCreatedAt(Instant createdAt) Sets the creation timestamp.voidsetFestival(Festival festival) Sets the festival the stage belongs to.voidsetGeoPoint(org.locationtech.jts.geom.Point geoPoint) Sets the geographic point of the stage.voidSets the ID of the stage.voidSets the name of the stage.voidsetUpdatedAt(Instant updatedAt) Sets the last update timestamp.voidSets the venue associated with the stage.Converts the stage to a response DTO.
-
Constructor Details
-
FestivalStage
protected FestivalStage()Protected no-arg constructor for JPA. -
FestivalStage
Constructs a new FestivalStage.- Parameters:
name- The name of the stage.festival- The festival the stage belongs to.
-
-
Method Details
-
getId
Gets the ID of the stage.- Returns:
- The stage ID.
-
setId
Sets the ID of the stage.- Parameters:
id- The stage ID.
-
getName
Gets the name of the stage.- Returns:
- The stage name.
-
setName
Sets the name of the stage.- Parameters:
name- The stage name.
-
getFestival
Gets the festival the stage belongs to.- Returns:
- The festival.
-
setFestival
Sets the festival the stage belongs to.- Parameters:
festival- The festival.
-
getVenue
Gets the venue associated with the stage.- Returns:
- The venue.
-
setVenue
Sets the venue associated with the stage.- Parameters:
venue- The venue.
-
getAddress
Gets the address of the stage.- Returns:
- The address.
-
setAddress
Sets the address of the stage.- Parameters:
address- The address.
-
getGeoPoint
public org.locationtech.jts.geom.Point getGeoPoint()Gets the geographic point of the stage.- Returns:
- The geographic point.
-
setGeoPoint
public void setGeoPoint(org.locationtech.jts.geom.Point geoPoint) Sets the geographic point of the stage.- Parameters:
geoPoint- The geographic point.
-
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.
-
toResponse
Converts the stage to a response DTO.- Returns:
- The stage response DTO.
-
equals
-
hashCode
public int hashCode()
-