Interface PostingLineRepository

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

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

      • findByBaseLineAndPstTimeLessThanEqualAndDiscardedTimeIsNullOrderByRecordTimeDesc

        List<PostingLine> findByBaseLineAndPstTimeLessThanEqualAndDiscardedTimeIsNullOrderByRecordTimeDesc​(String baseLine,
                                                                                                           LocalDateTime refTime)
      • findByAccountAndPstTimeLessThanEqualAndDiscardedTimeIsNullOrderByRecordTimeDesc

        List<PostingLine> findByAccountAndPstTimeLessThanEqualAndDiscardedTimeIsNullOrderByRecordTimeDesc​(LedgerAccount account,
                                                                                                          LocalDateTime refTime)
      • findByAccountAndPstTimeGreaterThanAndPstTimeLessThanEqualAndDiscardedTimeIsNullOrderByPstTimeDesc

        @Query("select pl from PostingLine pl join fetch pl.details where pl.account = :account and pl.pstTime > :fromDt and pl.pstTime <= :toDt and pl.discardedTime is null order by pl.pstTime desc")
        List<PostingLine> findByAccountAndPstTimeGreaterThanAndPstTimeLessThanEqualAndDiscardedTimeIsNullOrderByPstTimeDesc​(@Param("account")
                                                                                                                            LedgerAccount ledgerAccount,
                                                                                                                            @Param("fromDt")
                                                                                                                            LocalDateTime timeFrom,
                                                                                                                            @Param("toDt")
                                                                                                                            LocalDateTime timeTo)
      • findPostingsByAccountAndDates

        @Query("select pl from PostingLine pl join pl.details where pl.account = :account and pl.pstTime > :fromDt and pl.pstTime <= :toDt and pl.discardedTime is null order by pl.pstTime desc")
        org.springframework.data.domain.Page<PostingLine> findPostingsByAccountAndDates​(@Param("account")
                                                                                        LedgerAccount ledgerAccount,
                                                                                        @Param("fromDt")
                                                                                        LocalDateTime timeFrom,
                                                                                        @Param("toDt")
                                                                                        LocalDateTime timeTo,
                                                                                        org.springframework.data.domain.Pageable pageable)