Package org.localify.artist.join
Class ArtistSong
java.lang.Object
org.localify.artist.join.ArtistSong
Represents the join table between artists and songs.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents the composite key for the ArtistSong entity. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for JPA.ArtistSong(Artist artist, Song song) Constructs a new ArtistSong with the given artist and song. -
Method Summary
-
Constructor Details
-
ArtistSong
public ArtistSong()Default constructor for JPA. -
ArtistSong
Constructs a new ArtistSong with the given artist and song.- Parameters:
artist- The artist.song- The song.
-
-
Method Details
-
getArtist
Gets the artist.- Returns:
- The artist.
-
getSong
Gets the song.- Returns:
- The song.
-
getCreatedAt
Gets the creation timestamp.- Returns:
- The creation timestamp.
-
getKey
Gets the composite primary key.- Returns:
- The composite primary key.
-
setArtist
Sets the artist.- Parameters:
artist- The artist.- Returns:
- This ArtistSong instance.
-
setSong
Sets the song.- Parameters:
song- The song.- Returns:
- This ArtistSong instance.
-