Class FestivalPerformanceArtist.Key

java.lang.Object
org.localify.festival.jpa.FestivalPerformanceArtist.Key
All Implemented Interfaces:
Serializable
Enclosing class:
FestivalPerformanceArtist

@Embeddable public static class FestivalPerformanceArtist.Key extends Object implements Serializable
Represents the composite key for the FestivalPerformanceArtist entity.
See Also:
  • Constructor Details

    • Key

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

      public Key(UUID artistId, UUID festivalPerformanceId)
      Constructs a new Key.
      Parameters:
      artistId - The artist ID.
      festivalPerformanceId - The festival performance ID.
  • Method Details

    • getArtistId

      public UUID getArtistId()
      Gets the artist ID.
      Returns:
      The artist ID.
    • setArtistId

      public void setArtistId(UUID artistId)
      Sets the artist ID.
      Parameters:
      artistId - The artist ID.
    • getFestivalPerformanceId

      public UUID getFestivalPerformanceId()
      Gets the festival performance ID.
      Returns:
      The festival performance ID.
    • setFestivalPerformanceId

      public void setFestivalPerformanceId(UUID festivalPerformanceId)
      Sets the festival performance ID.
      Parameters:
      festivalPerformanceId - The festival performance ID.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object