Interface CurrencyRepository

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

public interface CurrencyRepository extends org.springframework.data.jpa.repository.JpaRepository<Currency,Currency.Id>
  • Method Summary

    Modifier and Type
    Method
    Description
     
    findByCurrencyId(String organisationId, String currencyId)
     

    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

    • findAllByOrganisationId

      @Query("SELECT t FROM Currency t WHERE t.id.organisationId = :organisationId") Set<Currency> findAllByOrganisationId(@Param("organisationId") String organisationId)
    • findByCurrencyId

      @Query("SELECT t FROM Currency t WHERE t.id.organisationId = :organisationId AND t.currencyId = :currencyId") Optional<Currency> findByCurrencyId(@Param("organisationId") String organisationId, @Param("currencyId") String currencyId)