Package org.localify.repositories
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 TypeMethodDescriptiongetByArtistAndGenre(Artist artist, Genre genre) 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
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.
-