Class ArtistSong.Key

java.lang.Object
org.localify.artist.join.ArtistSong.Key
All Implemented Interfaces:
Serializable
Enclosing class:
ArtistSong

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

    • Key

      protected Key()
      Default constructor for JPA.
    • Key

      public Key(UUID artistId, UUID songId)
      Constructs a new Key with the given artist and song IDs.
      Parameters:
      artistId - The artist ID.
      songId - The song 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.
    • getSongId

      public UUID getSongId()
      Gets the song ID.
      Returns:
      The song ID.
    • setSongId

      public void setSongId(UUID songId)
      Sets the song ID.
      Parameters:
      songId - The song ID.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object