@Repository
@Profile(value={"mongo","fongo"})
public interface TransactionRepository
extends org.springframework.data.mongodb.repository.MongoRepository<AspspTransaction,String>
| Modifier and Type | Method and Description |
|---|---|
List<AspspTransaction> |
findAllByDates(String iban,
Currency currency,
LocalDate dateFrom,
LocalDate dateTo) |
AspspTransaction |
findOneByTransactionIdAndAccount(String iban,
Currency currency,
String transactionId) |
findAll, findAll, findAll, findAll, insert, insert, savefindAll@Query(value="{$or:[{$and:[{\'creditorAccount.iban\':?0},{\'creditorAccount.currency\':?1}]},{$and:[{\'debtorAccount.iban\':?0},{\'debtorAccount.currency\':?1}]}],\'valueDate\':{$gte:?2,$lte:?3}}")
List<AspspTransaction> findAllByDates(String iban,
Currency currency,
LocalDate dateFrom,
LocalDate dateTo)
@Query(value="{$or:[{$and:[{\'creditorAccount.iban\':?0},{\'creditorAccount.currency\':?1}]},{$and:[{\'debtorAccount.iban\':?0},{\'debtorAccount.currency\':?1}]}],\'transactionId\':?2}")
AspspTransaction findOneByTransactionIdAndAccount(String iban,
Currency currency,
String transactionId)
Copyright © 2019. All rights reserved.