Class UserRecentCityView.Key

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

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

    • Key

      protected Key()
      Default constructor.
    • Key

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

      public UUID getCityId()
      Gets the city ID.
      Returns:
      The city ID.
    • setCityId

      public void setCityId(UUID cityId)
      Sets the city ID.
      Parameters:
      cityId - The city ID.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object