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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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)
-
-
-
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)
-
findFirstByIdAndAccount
Optional<PostingLine> findFirstByIdAndAccount(String transactionId, LedgerAccount ledgerAccount)
-
-