Package org.localify.artist.join
Class ArtistCity.Key
java.lang.Object
org.localify.artist.join.ArtistCity.Key
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ArtistCity
Represents the composite key for the ArtistCity entity.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Key
protected Key()Default constructor. -
Key
Constructs a new Key with the given artist and city IDs.- Parameters:
artistId- The artist ID.cityId- The city ID.
-
-
Method Details
-
getArtistId
Gets the artist ID.- Returns:
- The artist ID.
-
setArtistId
Sets the artist ID.- Parameters:
artistId- The artist ID.
-
getCityId
Gets the city ID.- Returns:
- The city ID.
-
setCityId
Sets the city ID.- Parameters:
cityId- The city ID.
-
equals
-
hashCode
public int hashCode()
-