Class ArtistSimilarity.Key

java.lang.Object
org.localify.artist.jpa.ArtistSimilarity.Key
All Implemented Interfaces:
Serializable
Enclosing class:
ArtistSimilarity

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

    • Key

      protected Key()
      Default constructor for JPA.
    • Key

      public Key(UUID seedArtistId, UUID similarArtistId)
      Constructs a new Key.
      Parameters:
      seedArtistId - The ID of the seed artist.
      similarArtistId - The ID of the similar artist.
  • Method Details

    • getSeedArtistId

      public UUID getSeedArtistId()
      Gets the seed artist ID.
      Returns:
      The seed artist ID.
    • setSeedArtistId

      public void setSeedArtistId(UUID seedArtistId)
      Sets the seed artist ID.
      Parameters:
      seedArtistId - The seed artist ID.
    • getSimilarArtistId

      public UUID getSimilarArtistId()
      Gets the similar artist ID.
      Returns:
      The similar artist ID.
    • setSimilarArtistId

      public void setSimilarArtistId(UUID similarArtistId)
      Sets the similar artist ID.
      Parameters:
      similarArtistId - The similar artist ID.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object