public interface LedgerAccountRepository extends NamedEntityRepository<LedgerAccount>
| Modifier and Type | Method and Description |
|---|---|
Optional<LedgerAccount> |
findOptionalByLedgerAndName(Ledger ledger,
String name) |
List<LedgerAccount> |
getAccountsByIbans(Set<String> ibans,
Ledger ledger) |
List<LedgerAccount> |
getAccountsByIds(List<String> ids) |
Optional<LedgerAccount> findOptionalByLedgerAndName(Ledger ledger, String name)
@Query(value="select distinct a from LedgerAccount a where a.ledger=?2 and a.name in ?1") List<LedgerAccount> getAccountsByIbans(Set<String> ibans, Ledger ledger)
@Query(value="select distinct a from LedgerAccount a where a.id in ?1") List<LedgerAccount> getAccountsByIds(List<String> ids)
Copyright © 2019. All rights reserved.