Class UserRecommendation

java.lang.Object
org.localify.recommend.UserRecommendation

@Entity public class UserRecommendation extends Object
Represents a set of recommendations for a user, tied to a city or festival.
  • Constructor Details

    • UserRecommendation

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

      public UserRecommendation(User user, City city)
      Constructs a new UserRecommendation for a city.
      Parameters:
      user - The user.
      city - The city.
    • UserRecommendation

      public UserRecommendation(User user, Festival festival)
      Constructs a new UserRecommendation for a festival.
      Parameters:
      user - The user.
      festival - The festival.
  • Method Details

    • getCreatedAt

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

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

      public UUID getId()
      Gets the ID of the recommendation.
      Returns:
      The ID.
    • getUser

      public User getUser()
      Gets the user for this recommendation.
      Returns:
      The user.
    • getArtists

      public List<UserArtistRecommendation> getArtists()
      Gets the list of artist recommendations.
      Returns:
      A list of artist recommendations.
    • setUser

      public UserRecommendation setUser(User user)
      Sets the user for this recommendation.
      Parameters:
      user - The user.
      Returns:
      This UserRecommendation instance.
    • getDtos

      public List<RecommendedArtistDto> getDtos()
      Gets the list of recommended artist DTOs.
      Returns:
      A list of recommended artist DTOs.
    • setDtos

      public void setDtos(List<RecommendedArtistDto> dtos)
      Sets the list of recommended artist DTOs.
      Parameters:
      dtos - A list of recommended artist DTOs.