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
Modifier and TypeMethodDescriptionfindByCurrencyAndDateBetween(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, saveAllMethods inherited from interface org.springframework.data.elasticsearch.repository.ElasticsearchRepository
searchSimilarMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAll, findAll
-
Method Details
-
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>
-