Class UserRecentEventView.Key

java.lang.Object
org.localify.user.support.UserRecentEventView.Key
All Implemented Interfaces:
Serializable
Enclosing class:
UserRecentEventView

@Embeddable public static class UserRecentEventView.Key extends Object implements Serializable
Represents the composite key for a user recent event view.
See Also:
  • Constructor Details

    • Key

      protected Key()
      Default constructor.
    • Key

      public Key(UUID userId, UUID eventId)
      Creates a new key.
      Parameters:
      userId - The user ID.
      eventId - The event 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.
    • 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