Class FestivalUser.Key

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

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

    • Key

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

      public Key(UUID userId, UUID festivalId)
      Constructs a new Key.
      Parameters:
      userId - The user ID.
      festivalId - The festival ID.
  • Method Details

    • getUserId

      public UUID getUserId()
      Gets the user ID.
      Returns:
      The user ID.
    • setUserId

      public void setUserId(UUID userId)
      Sets the user ID.
      Parameters:
      userId - The user 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