Package org.localify.repositories
Interface FestivalPerformanceArtistRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<FestivalPerformanceArtist,,FestivalPerformanceArtist.Key> org.springframework.data.jpa.repository.JpaRepository<FestivalPerformanceArtist,,FestivalPerformanceArtist.Key> org.springframework.data.repository.ListCrudRepository<FestivalPerformanceArtist,,FestivalPerformanceArtist.Key> org.springframework.data.repository.ListPagingAndSortingRepository<FestivalPerformanceArtist,,FestivalPerformanceArtist.Key> org.springframework.data.repository.PagingAndSortingRepository<FestivalPerformanceArtist,,FestivalPerformanceArtist.Key> org.springframework.data.repository.query.QueryByExampleExecutor<FestivalPerformanceArtist>,org.springframework.data.repository.Repository<FestivalPerformanceArtist,FestivalPerformanceArtist.Key>
public interface FestivalPerformanceArtistRepository
extends org.springframework.data.jpa.repository.JpaRepository<FestivalPerformanceArtist,FestivalPerformanceArtist.Key>
Repository for
FestivalPerformanceArtist entities.-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteByFestivalId(UUID festivalId) Deletes all festival performance artist relationships for a festival.findByFestivalPerformanceStageFestivalId(UUID festivalId) Finds all festival performance artist relationships for a festival.Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
deleteByFestivalId
@Transactional @Modifying @Query("delete from FestivalPerformanceArtist fpa\nwhere fpa.festivalPerformance.id in (\n select fp.id\n from FestivalPerformance fp\n where fp.stage.festival.id = :festivalId\n)\n") void deleteByFestivalId(UUID festivalId) Deletes all festival performance artist relationships for a festival.- Parameters:
festivalId- The ID of the festival.
-
findByFestivalPerformanceStageFestivalId
Finds all festival performance artist relationships for a festival.- Parameters:
festivalId- The ID of the festival.- Returns:
- A list of festival performance artist relationships.
-