Package org.localify.artist.join
Class ArtistGenre.ArtistGenrePK
java.lang.Object
org.localify.artist.join.ArtistGenre.ArtistGenrePK
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ArtistGenre
Represents the composite primary key for the ArtistGenre entity.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for JPA.ArtistGenrePK(UUID artistId, UUID genreId) Constructs a new ArtistGenrePK with the given artist and genre IDs. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the artist ID.Gets the genre ID.inthashCode()voidsetArtistId(UUID artistId) Sets the artist ID.voidsetGenreId(UUID genreId) Sets the genre ID.
-
Constructor Details
-
ArtistGenrePK
protected ArtistGenrePK()Default constructor for JPA. -
ArtistGenrePK
Constructs a new ArtistGenrePK with the given artist and genre IDs.- Parameters:
artistId- The artist ID.genreId- The genre ID.
-
-
Method Details
-
getArtistId
Gets the artist ID.- Returns:
- The artist ID.
-
setArtistId
Sets the artist ID.- Parameters:
artistId- The artist ID.
-
getGenreId
Gets the genre ID.- Returns:
- The genre ID.
-
setGenreId
Sets the genre ID.- Parameters:
genreId- The genre ID.
-
equals
-
hashCode
public int hashCode()
-