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 Summary
Modifier and TypeMethodDescriptionfindAllByOrganisationId(String orgId) findAllByOrganisationIdAndReferenceCode(String orgId, String customerCode) findAllByOrganisationIdSubTypeId(Long subTypeId) findAllByOrganisationIdSubTypeIds(List<Long> mappingType) findByIdAndActive(ChartOfAccount.Id Id, boolean active) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
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)
-