Package org.localify.artist.join
Class ArtistGenre
java.lang.Object
org.localify.artist.join.ArtistGenre
Represents the join table between artists and genres.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents the composite primary key for the ArtistGenre entity. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for JPA.ArtistGenre(Artist artist, Genre genre, DataSource dataSource) Constructs a new ArtistGenre with the given artist, genre, and data source. -
Method Summary
Modifier and TypeMethodDescriptionGets the artist.Gets the timestamp when the relationship was banned.Gets the creation timestamp.Gets the data source.Checks if the genre is emblematic for the artist.Gets the emblem placement.getGenre()Gets the genre.getId()Gets the composite primary key.Gets the raw popularity of the genre for the artist.getScore()Gets the score of the artist-genre relationship.Gets the update timestamp.voidSets the artist.voidsetBannedAt(Instant bannedAt) Sets the timestamp when the relationship was banned.voidsetCreatedAt(Instant createdAt) Sets the creation timestamp.voidsetDataSource(DataSource dataSource) Sets the data source.voidsetEmblematic(Boolean emblematic) Sets whether the genre is emblematic for the artist.voidsetEmblemPlacement(Integer emblemPlacement) Sets the emblem placement.voidSets the genre.voidSets the composite primary key.voidsetRawPopularity(Long rawPopularity) Sets the raw popularity of the genre for the artist.voidSets the score of the artist-genre relationship.voidsetUpdatedAt(Instant updatedAt) Sets the update timestamp.
-
Constructor Details
-
ArtistGenre
protected ArtistGenre()Default constructor for JPA. -
ArtistGenre
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
Gets the composite primary key.- Returns:
- The composite primary key.
-
setId
Sets the composite primary key.- Parameters:
id- The composite primary key.
-
getArtist
Gets the artist.- Returns:
- The artist.
-
setArtist
Sets the artist.- Parameters:
artist- The artist.
-
getGenre
Gets the genre.- Returns:
- The genre.
-
setGenre
Sets the genre.- Parameters:
genre- The genre.
-
getScore
Gets the score of the artist-genre relationship.- Returns:
- The score.
-
setScore
Sets the score of the artist-genre relationship.- Parameters:
score- The score.
-
getDataSource
Gets the data source.- Returns:
- The data source.
-
setDataSource
Sets the data source.- Parameters:
dataSource- The data source.
-
getBannedAt
Gets the timestamp when the relationship was banned.- Returns:
- The banned timestamp.
-
setBannedAt
Sets the timestamp when the relationship was banned.- Parameters:
bannedAt- The banned timestamp.
-
getCreatedAt
Gets the creation timestamp.- Returns:
- The creation timestamp.
-
setCreatedAt
Sets the creation timestamp.- Parameters:
createdAt- The creation timestamp.
-
getUpdatedAt
Gets the update timestamp.- Returns:
- The update timestamp.
-
setUpdatedAt
Sets the update timestamp.- Parameters:
updatedAt- The update timestamp.
-
getRawPopularity
Gets the raw popularity of the genre for the artist.- Returns:
- The raw popularity.
-
setRawPopularity
Sets the raw popularity of the genre for the artist.- Parameters:
rawPopularity- The raw popularity.
-
getEmblematic
Checks if the genre is emblematic for the artist.- Returns:
- True if emblematic, false otherwise.
-
setEmblematic
Sets whether the genre is emblematic for the artist.- Parameters:
emblematic- True if emblematic, false otherwise.
-
getEmblemPlacement
Gets the emblem placement.- Returns:
- The emblem placement.
-
setEmblemPlacement
Sets the emblem placement.- Parameters:
emblemPlacement- The emblem placement.
-