public interface PostingLineRepository extends org.springframework.data.repository.PagingAndSortingRepository<PostingLine,String>
| Modifier and Type | Method and Description |
|---|---|
List<PostingLine> |
findByAccountAndPstTimeGreaterThanAndPstTimeLessThanEqualAndDiscardedTimeIsNullOrderByPstTimeDesc(LedgerAccount ledgerAccount,
LocalDateTime timeFrom,
LocalDateTime timeTo) |
List<PostingLine> |
findByAccountAndPstTimeLessThanEqualAndDiscardedTimeIsNullOrderByRecordTimeDesc(LedgerAccount account,
LocalDateTime refTime) |
List<PostingLine> |
findByBaseLineAndPstTimeLessThanEqualAndDiscardedTimeIsNullOrderByRecordTimeDesc(String baseLine,
LocalDateTime refTime) |
Optional<PostingLine> |
findFirstByIdAndAccount(String transactionId,
LedgerAccount ledgerAccount) |
org.springframework.data.domain.Page<PostingLine> |
findPostingsByAccountAndDates(LedgerAccount ledgerAccount,
LocalDateTime timeFrom,
LocalDateTime timeTo,
org.springframework.data.domain.Pageable pageable) |
List<PostingLine> findByBaseLineAndPstTimeLessThanEqualAndDiscardedTimeIsNullOrderByRecordTimeDesc(String baseLine, LocalDateTime refTime)
List<PostingLine> findByAccountAndPstTimeLessThanEqualAndDiscardedTimeIsNullOrderByRecordTimeDesc(LedgerAccount account, LocalDateTime refTime)
@Query(value="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(value="account") LedgerAccount ledgerAccount, @Param(value="fromDt") LocalDateTime timeFrom, @Param(value="toDt") LocalDateTime timeTo)
@Query(value="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(value="account") LedgerAccount ledgerAccount, @Param(value="fromDt") LocalDateTime timeFrom, @Param(value="toDt") LocalDateTime timeTo, org.springframework.data.domain.Pageable pageable)
Optional<PostingLine> findFirstByIdAndAccount(String transactionId, LedgerAccount ledgerAccount)
Copyright © 2020. All rights reserved.