Class ArtistGenre

java.lang.Object
org.localify.artist.join.ArtistGenre

@Entity public class ArtistGenre extends Object
Represents the join table between artists and genres.
  • Constructor Details

    • ArtistGenre

      protected ArtistGenre()
      Default constructor for JPA.
    • ArtistGenre

      public ArtistGenre(Artist artist, Genre genre, DataSource dataSource)
      Constructs a new ArtistGenre with the given artist, genre, and data source.
      Parameters:
      artist - The artist.
      genre - The genre.
      dataSource - The data source.
  • Method Details

    • getId

      public ArtistGenre.ArtistGenrePK getId()
      Gets the composite primary key.
      Returns:
      The composite primary key.
    • setId

      public void setId(ArtistGenre.ArtistGenrePK id)
      Sets the composite primary key.
      Parameters:
      id - The composite primary key.
    • getArtist

      public Artist getArtist()
      Gets the artist.
      Returns:
      The artist.
    • setArtist

      public void setArtist(Artist artist)
      Sets the artist.
      Parameters:
      artist - The artist.
    • getGenre

      public Genre getGenre()
      Gets the genre.
      Returns:
      The genre.
    • setGenre

      public void setGenre(Genre genre)
      Sets the genre.
      Parameters:
      genre - The genre.
    • getScore

      public Double getScore()
      Gets the score of the artist-genre relationship.
      Returns:
      The score.
    • setScore

      public void setScore(Double score)
      Sets the score of the artist-genre relationship.
      Parameters:
      score - The score.
    • getDataSource

      public DataSource getDataSource()
      Gets the data source.
      Returns:
      The data source.
    • setDataSource

      public void setDataSource(DataSource dataSource)
      Sets the data source.
      Parameters:
      dataSource - The data source.
    • getBannedAt

      public Instant getBannedAt()
      Gets the timestamp when the relationship was banned.
      Returns:
      The banned timestamp.
    • setBannedAt

      public void setBannedAt(Instant bannedAt)
      Sets the timestamp when the relationship was banned.
      Parameters:
      bannedAt - The banned timestamp.
    • 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.
    • getUpdatedAt

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

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

      public Long getRawPopularity()
      Gets the raw popularity of the genre for the artist.
      Returns:
      The raw popularity.
    • setRawPopularity

      public void setRawPopularity(Long rawPopularity)
      Sets the raw popularity of the genre for the artist.
      Parameters:
      rawPopularity - The raw popularity.
    • getEmblematic

      public Boolean getEmblematic()
      Checks if the genre is emblematic for the artist.
      Returns:
      True if emblematic, false otherwise.
    • setEmblematic

      public void setEmblematic(Boolean emblematic)
      Sets whether the genre is emblematic for the artist.
      Parameters:
      emblematic - True if emblematic, false otherwise.
    • getEmblemPlacement

      public Integer getEmblemPlacement()
      Gets the emblem placement.
      Returns:
      The emblem placement.
    • setEmblemPlacement

      public void setEmblemPlacement(Integer emblemPlacement)
      Sets the emblem placement.
      Parameters:
      emblemPlacement - The emblem placement.