Interface ChartOfAccountRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<ChartOfAccount,ChartOfAccount.Id>, org.springframework.data.jpa.repository.JpaRepository<ChartOfAccount,ChartOfAccount.Id>, org.springframework.data.repository.ListCrudRepository<ChartOfAccount,ChartOfAccount.Id>, org.springframework.data.repository.ListPagingAndSortingRepository<ChartOfAccount,ChartOfAccount.Id>, org.springframework.data.repository.PagingAndSortingRepository<ChartOfAccount,ChartOfAccount.Id>, org.springframework.data.repository.query.QueryByExampleExecutor<ChartOfAccount>, org.springframework.data.repository.Repository<ChartOfAccount,ChartOfAccount.Id>

public interface ChartOfAccountRepository extends org.springframework.data.jpa.repository.JpaRepository<ChartOfAccount,ChartOfAccount.Id>
  • Method Details

    • findAllByOrganisationIdSubTypeId

      @Query("SELECT t FROM ChartOfAccount t WHERE t.subType.id = :subTypeId") Set<ChartOfAccount> findAllByOrganisationIdSubTypeId(@Param("subTypeId") Long subTypeId)
    • findAllByOrganisationId

      @Query("SELECT t FROM ChartOfAccount t WHERE t.Id.organisationId = :orgId") Set<ChartOfAccount> findAllByOrganisationId(@Param("orgId") String orgId)
    • findAllByOrganisationIdAndReferenceCode

      @Query("SELECT t FROM ChartOfAccount t WHERE t.Id.organisationId = :orgId AND t.Id.customerCode = :customerCode") Optional<ChartOfAccount> findAllByOrganisationIdAndReferenceCode(@Param("orgId") String orgId, @Param("customerCode") String customerCode)
    • findAllByOrganisationIdSubTypeIds

      @Query("SELECT t FROM ChartOfAccount t WHERE t.subType.id IN :subTypeIds") Set<ChartOfAccount> findAllByOrganisationIdSubTypeIds(@Param("subTypeIds") List<Long> mappingType)
    • findByIdAndActive

      @Query("SELECT t FROM ChartOfAccount t WHERE t.id = :Id AND t.active = :active ") Optional<ChartOfAccount> findByIdAndActive(@Param("Id") ChartOfAccount.Id Id, @Param("active") boolean active)