Package org.localify.artist.join
Class ArtistEvent.Key
java.lang.Object
org.localify.artist.join.ArtistEvent.Key
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ArtistEvent
Represents the composite key for the ArtistEvent entity.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the artist ID.Gets the event ID.inthashCode()voidsetArtistId(UUID artistId) Sets the artist ID.voidsetEventId(UUID eventId) Sets the event ID.
-
Constructor Details
-
Key
protected Key()Default constructor for JPA. -
Key
Constructs a new Key with the given artist and event IDs.- Parameters:
artistId- The artist ID.eventId- The event ID.
-
-
Method Details
-
getArtistId
Gets the artist ID.- Returns:
- The artist ID.
-
setArtistId
Sets the artist ID.- Parameters:
artistId- The artist ID.
-
getEventId
Gets the event ID.- Returns:
- The event ID.
-
setEventId
Sets the event ID.- Parameters:
eventId- The event ID.
-
equals
-
hashCode
public int hashCode()
-