Interface LedgerRepository
-
- All Superinterfaces:
BaseEntityRepository<Ledger>,org.springframework.data.repository.CrudRepository<Ledger,String>,NamedEntityRepository<Ledger>,org.springframework.data.repository.PagingAndSortingRepository<Ledger,String>,org.springframework.data.repository.Repository<Ledger,String>
public interface LedgerRepository extends NamedEntityRepository<Ledger>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Ledger>findByCoa(ChartOfAccount coa)Resolve all ledgers using this coa.Optional<Ledger>findOptionalByName(String name)Find a ledger with this name.
-
-
-
Method Detail
-
findOptionalByName
Optional<Ledger> findOptionalByName(String name)
Find a ledger with this name.- Parameters:
name- of ledger- Returns:
- ledger wrapped with Optional
-
findByCoa
List<Ledger> findByCoa(ChartOfAccount coa)
Resolve all ledgers using this coa.- Parameters:
coa- : chart of account- Returns:
- list of ledgers
-
-