Package org.localify.artist.join
Class ArtistSong.Key
java.lang.Object
org.localify.artist.join.ArtistSong.Key
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ArtistSong
Represents the composite key for the ArtistSong entity.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Key
protected Key()Default constructor for JPA. -
Key
Constructs a new Key with the given artist and song IDs.- Parameters:
artistId- The artist ID.songId- The song ID.
-
-
Method Details
-
getArtistId
Gets the artist ID.- Returns:
- The artist ID.
-
setArtistId
Sets the artist ID.- Parameters:
artistId- The artist ID.
-
getSongId
Gets the song ID.- Returns:
- The song ID.
-
setSongId
Sets the song ID.- Parameters:
songId- The song ID.
-
equals
-
hashCode
public int hashCode()
-