Package org.localify.festival.jpa
Class FestivalArtist.Key
java.lang.Object
org.localify.festival.jpa.FestivalArtist.Key
- All Implemented Interfaces:
Serializable
- Enclosing class:
- FestivalArtist
Represents the composite key for the FestivalArtist entity.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the artist ID.Gets the festival ID.inthashCode()voidsetArtistId(UUID artistId) Sets the artist ID.voidsetFestivalId(UUID festivalId) Sets the festival ID.
-
Constructor Details
-
Key
protected Key()Protected no-arg constructor for JPA. -
Key
Constructs a new Key.- Parameters:
artistId- The artist ID.festivalId- The festival ID.
-
-
Method Details
-
getArtistId
Gets the artist ID.- Returns:
- The artist ID.
-
setArtistId
Sets the artist ID.- Parameters:
artistId- The artist ID.
-
getFestivalId
Gets the festival ID.- Returns:
- The festival ID.
-
setFestivalId
Sets the festival ID.- Parameters:
festivalId- The festival ID.
-
equals
-
hashCode
public int hashCode()
-