Class FestivalArtist.Key

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

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

    • Key

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

      public Key(UUID artistId, UUID festivalId)
      Constructs a new Key.
      Parameters:
      artistId - The artist ID.
      festivalId - The festival 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.
    • getFestivalId

      public UUID getFestivalId()
      Gets the festival ID.
      Returns:
      The festival ID.
    • setFestivalId

      public void setFestivalId(UUID festivalId)
      Sets the festival ID.
      Parameters:
      festivalId - The festival ID.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object