Class FestivalStage

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

@Entity public class FestivalStage extends Object
Represents a stage at a festival. This class mimics the behavior of a Venue.
  • Constructor Details

    • FestivalStage

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

      public FestivalStage(String name, Festival festival)
      Constructs a new FestivalStage.
      Parameters:
      name - The name of the stage.
      festival - The festival the stage belongs to.
  • Method Details

    • getId

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

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

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

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

      public Festival getFestival()
      Gets the festival the stage belongs to.
      Returns:
      The festival.
    • setFestival

      public void setFestival(Festival festival)
      Sets the festival the stage belongs to.
      Parameters:
      festival - The festival.
    • getVenue

      public Venue getVenue()
      Gets the venue associated with the stage.
      Returns:
      The venue.
    • setVenue

      public void setVenue(Venue venue)
      Sets the venue associated with the stage.
      Parameters:
      venue - The venue.
    • getAddress

      public String getAddress()
      Gets the address of the stage.
      Returns:
      The address.
    • setAddress

      public void setAddress(String address)
      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

      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.
    • toResponse

      public FestivalStageResponse toResponse()
      Converts the stage to a response DTO.
      Returns:
      The stage response DTO.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object