Class ArtistEvent.Key

java.lang.Object
org.localify.artist.join.ArtistEvent.Key
All Implemented Interfaces:
Serializable
Enclosing class:
ArtistEvent

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

    • Key

      protected Key()
      Default constructor for JPA.
    • Key

      public Key(UUID artistId, UUID eventId)
      Constructs a new Key with the given artist and event IDs.
      Parameters:
      artistId - The artist ID.
      eventId - The event 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.
    • getEventId

      public UUID getEventId()
      Gets the event ID.
      Returns:
      The event ID.
    • setEventId

      public void setEventId(UUID eventId)
      Sets the event ID.
      Parameters:
      eventId - The event ID.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object