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 Type
    Method
    Description
    void
    Deletes all festival performance artist relationships for a festival.
    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, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods 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

      List<FestivalPerformanceArtist> findByFestivalPerformanceStageFestivalId(UUID festivalId)
      Finds all festival performance artist relationships for a festival.
      Parameters:
      festivalId - The ID of the festival.
      Returns:
      A list of festival performance artist relationships.