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 Type
    Method
    Description
    findBySeedArtistAndSimilarArtist(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, 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

    • 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.