Package org.localify.festival.jpa
Class FestivalPerformanceArtist
java.lang.Object
org.localify.festival.jpa.FestivalPerformanceArtist
Represents the join table between artists and festival performances.
This class mimics the behavior of an ArtistEvent.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents the composite key for the FestivalPerformanceArtist entity. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProtected no-arg constructor for JPA.FestivalPerformanceArtist(Artist artist, FestivalPerformance festivalPerformance) Constructs a new FestivalPerformanceArtist. -
Method Summary
Modifier and TypeMethodDescriptionGets the artist.Gets the creation timestamp.Gets the festival performance.getKey()Gets the composite key.Gets the last update timestamp.voidSets the artist.voidsetCreatedAt(Instant createdAt) Sets the creation timestamp.voidsetFestivalPerformance(FestivalPerformance festivalPerformance) Sets the festival performance.voidSets the composite key.voidsetUpdatedAt(Instant updatedAt) Sets the last update timestamp.
-
Constructor Details
-
FestivalPerformanceArtist
protected FestivalPerformanceArtist()Protected no-arg constructor for JPA. -
FestivalPerformanceArtist
Constructs a new FestivalPerformanceArtist.- Parameters:
artist- The artist.festivalPerformance- The festival performance.
-
-
Method Details
-
getKey
Gets the composite key.- Returns:
- The key.
-
setKey
Sets the composite key.- Parameters:
key- The key.
-
getArtist
Gets the artist.- Returns:
- The artist.
-
setArtist
Sets the artist.- Parameters:
artist- The artist.
-
getFestivalPerformance
Gets the festival performance.- Returns:
- The festival performance.
-
setFestivalPerformance
Sets the festival performance.- Parameters:
festivalPerformance- The festival performance.
-
getCreatedAt
Gets the creation timestamp.- Returns:
- The creation timestamp.
-
setCreatedAt
Sets the creation timestamp.- Parameters:
createdAt- The creation timestamp.
-
getUpdatedAt
Gets the last update timestamp.- Returns:
- The last update timestamp.
-
setUpdatedAt
Sets the last update timestamp.- Parameters:
updatedAt- The last update timestamp.
-