Interface ArtistSongRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<ArtistSong,UUID>, org.springframework.data.jpa.repository.JpaRepository<ArtistSong,UUID>, org.springframework.data.repository.ListCrudRepository<ArtistSong,UUID>, org.springframework.data.repository.ListPagingAndSortingRepository<ArtistSong,UUID>, org.springframework.data.repository.PagingAndSortingRepository<ArtistSong,UUID>, org.springframework.data.repository.query.QueryByExampleExecutor<ArtistSong>, org.springframework.data.repository.Repository<ArtistSong,UUID>

public interface ArtistSongRepository extends org.springframework.data.jpa.repository.JpaRepository<ArtistSong,UUID>
Repository for ArtistSong entities.
  • Method Summary

    Modifier and Type
    Method
    Description
    Finds an artist-song relationship by artist and song.

    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

    • getByArtistAndSong

      Optional<ArtistSong> getByArtistAndSong(Artist artist, Song song)
      Finds an artist-song relationship by artist and song.
      Parameters:
      artist - The artist.
      song - The song.
      Returns:
      An optional containing the artist-song relationship if found, otherwise empty.