Class FestivalPerformanceArtist

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

@Entity public class FestivalPerformanceArtist extends Object
Represents the join table between artists and festival performances. This class mimics the behavior of an ArtistEvent.
  • Constructor Details

    • FestivalPerformanceArtist

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

      public FestivalPerformanceArtist(Artist artist, FestivalPerformance festivalPerformance)
      Constructs a new FestivalPerformanceArtist.
      Parameters:
      artist - The artist.
      festivalPerformance - The festival performance.
  • Method Details

    • getKey

      Gets the composite key.
      Returns:
      The key.
    • setKey

      public void setKey(FestivalPerformanceArtist.Key key)
      Sets the composite key.
      Parameters:
      key - The key.
    • getArtist

      public Artist getArtist()
      Gets the artist.
      Returns:
      The artist.
    • setArtist

      public void setArtist(Artist artist)
      Sets the artist.
      Parameters:
      artist - The artist.
    • getFestivalPerformance

      public FestivalPerformance getFestivalPerformance()
      Gets the festival performance.
      Returns:
      The festival performance.
    • setFestivalPerformance

      public void setFestivalPerformance(FestivalPerformance festivalPerformance)
      Sets the festival performance.
      Parameters:
      festivalPerformance - The festival performance.
    • 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.