Interface ArtistGenreRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<ArtistGenre,ArtistGenre.ArtistGenrePK>, org.springframework.data.repository.Repository<ArtistGenre,ArtistGenre.ArtistGenrePK>

public interface ArtistGenreRepository extends org.springframework.data.repository.CrudRepository<ArtistGenre,ArtistGenre.ArtistGenrePK>
Repository for ArtistGenre entities.
  • Method Summary

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

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

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAll
  • Method Details

    • getByArtistAndGenre

      Optional<ArtistGenre> getByArtistAndGenre(Artist artist, Genre genre)
      Finds an artist-genre relationship by artist and genre.
      Parameters:
      artist - The artist.
      genre - The genre.
      Returns:
      An optional containing the artist-genre relationship if found, otherwise empty.