Class ArtistCity.Key

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

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

    • Key

      protected Key()
      Default constructor.
    • Key

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

      public UUID getCityId()
      Gets the city ID.
      Returns:
      The city ID.
    • setCityId

      public void setCityId(UUID cityId)
      Sets the city ID.
      Parameters:
      cityId - The city ID.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object