Package org.localify.repositories
Interface ArtistSimilarityRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<ArtistSimilarity,,UUID> org.springframework.data.jpa.repository.JpaRepository<ArtistSimilarity,,UUID> org.springframework.data.repository.ListCrudRepository<ArtistSimilarity,,UUID> org.springframework.data.repository.ListPagingAndSortingRepository<ArtistSimilarity,,UUID> org.springframework.data.repository.PagingAndSortingRepository<ArtistSimilarity,,UUID> org.springframework.data.repository.query.QueryByExampleExecutor<ArtistSimilarity>,org.springframework.data.repository.Repository<ArtistSimilarity,UUID>
public interface ArtistSimilarityRepository
extends org.springframework.data.jpa.repository.JpaRepository<ArtistSimilarity,UUID>
Repository for
ArtistSimilarity entities.-
Method Summary
Modifier and TypeMethodDescriptionfindBySeedArtistAndSimilarArtist(Artist seedArtist, Artist similarArtist) Finds an artist similarity by seed artist and similar artist.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
-
findBySeedArtistAndSimilarArtist
Optional<ArtistSimilarity> findBySeedArtistAndSimilarArtist(Artist seedArtist, Artist similarArtist) Finds an artist similarity by seed artist and similar artist.- Parameters:
seedArtist- The seed artist.similarArtist- The similar artist.- Returns:
- An optional containing the artist similarity if found, otherwise empty.
-