Package io.meeds.deeds.storage
Interface CurrencyExchangeRateRepository
-
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<CurrencyExchangeRate,LocalDate>,org.springframework.data.elasticsearch.repository.ElasticsearchRepository<CurrencyExchangeRate,LocalDate>,org.springframework.data.repository.PagingAndSortingRepository<CurrencyExchangeRate,LocalDate>,org.springframework.data.repository.Repository<CurrencyExchangeRate,LocalDate>
public interface CurrencyExchangeRateRepository extends org.springframework.data.elasticsearch.repository.ElasticsearchRepository<CurrencyExchangeRate,LocalDate>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<CurrencyExchangeRate>findByCurrencyAndDateBetween(Currency currency, LocalDate from, LocalDate to)<S extends CurrencyExchangeRate>
Ssave(S entity)-
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, saveAll
-
-
-
-
Method Detail
-
findByCurrencyAndDateBetween
@Cacheable(cacheNames="currencyRates") List<CurrencyExchangeRate> findByCurrencyAndDateBetween(Currency currency, LocalDate from, LocalDate to)
-
save
@CacheEvict(cacheNames="currencyRates", allEntries=true) <S extends CurrencyExchangeRate> S save(S entity)- Specified by:
savein interfaceorg.springframework.data.repository.CrudRepository<CurrencyExchangeRate,LocalDate>
-
-