Interface PostingRepository

  • All Superinterfaces:
    org.springframework.data.repository.CrudRepository<Posting,​String>, org.springframework.data.repository.PagingAndSortingRepository<Posting,​String>, org.springframework.data.repository.Repository<Posting,​String>

    public interface PostingRepository
    extends org.springframework.data.repository.PagingAndSortingRepository<Posting,​String>
    • Method Detail

      • findByOprIdAndDiscardingIdIsNull

        Optional<Posting> findByOprIdAndDiscardingIdIsNull​(String oprId)
        Load the non discaded posting.
        Parameters:
        oprId - operation id
        Returns:
        posting wrapped with Optional
      • findFirstByLedgerOrderByRecordTimeDesc

        Optional<Posting> findFirstByLedgerOrderByRecordTimeDesc​(Ledger ledger)