Interface LedgerRepository

    • 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.
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

        count, delete, deleteAll, deleteAll, deleteById, existsById, findAll, findAllById, findById, save, saveAll
      • Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

        findAll, findAll
    • 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