Class UserRecentCityView

java.lang.Object
org.localify.user.support.UserRecentCityView

@Entity public class UserRecentCityView extends Object
Represents a recent city view by a user.
  • Constructor Details

    • UserRecentCityView

      protected UserRecentCityView()
      Default constructor.
    • UserRecentCityView

      public UserRecentCityView(User user, City city)
      Creates a new user recent city view.
      Parameters:
      user - The user.
      city - The city.
  • Method Details

    • getKey

      public UserRecentCityView.Key getKey()
      Gets the key.
      Returns:
      The key.
    • setKey

      public void setKey(UserRecentCityView.Key key)
      Sets the key.
      Parameters:
      key - The key.
    • getUser

      public User getUser()
      Gets the user.
      Returns:
      The user.
    • setUser

      public void setUser(User user)
      Sets the user.
      Parameters:
      user - The user.
    • getCreatedAt

      public Instant getCreatedAt()
      Gets the creation timestamp.
      Returns:
      The creation timestamp.
    • setCreatedAt

      public void setCreatedAt(Instant createdAt)
      Sets the creation timestamp.
      Parameters:
      createdAt - The creation timestamp.
    • getCity

      public City getCity()
      Gets the city.
      Returns:
      The city.
    • setCity

      public void setCity(City city)
      Sets the city.
      Parameters:
      city - The city.
    • getUpdatedAt

      public Instant getUpdatedAt()
      Gets the last update timestamp.
      Returns:
      The last update timestamp.
    • setUpdatedAt

      public void setUpdatedAt(Instant updatedAt)
      Sets the last update timestamp.
      Parameters:
      updatedAt - The last update timestamp.