Class ArtistGenre.ArtistGenrePK

java.lang.Object
org.localify.artist.join.ArtistGenre.ArtistGenrePK
All Implemented Interfaces:
Serializable
Enclosing class:
ArtistGenre

@Embeddable public static class ArtistGenre.ArtistGenrePK extends Object implements Serializable
Represents the composite primary key for the ArtistGenre entity.
See Also:
  • Constructor Details

    • ArtistGenrePK

      protected ArtistGenrePK()
      Default constructor for JPA.
    • ArtistGenrePK

      public ArtistGenrePK(UUID artistId, UUID genreId)
      Constructs a new ArtistGenrePK with the given artist and genre IDs.
      Parameters:
      artistId - The artist ID.
      genreId - The genre ID.
  • Method Details

    • getArtistId

      public UUID getArtistId()
      Gets the artist ID.
      Returns:
      The artist ID.
    • setArtistId

      public void setArtistId(UUID artistId)
      Sets the artist ID.
      Parameters:
      artistId - The artist ID.
    • getGenreId

      public UUID getGenreId()
      Gets the genre ID.
      Returns:
      The genre ID.
    • setGenreId

      public void setGenreId(UUID genreId)
      Sets the genre ID.
      Parameters:
      genreId - The genre ID.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object