Interface ChartOfAccountTypeRepository

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

public interface ChartOfAccountTypeRepository extends org.springframework.data.jpa.repository.JpaRepository<ChartOfAccountType,String>
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • findAllByOrganisationId

      @Query("SELECT t FROM ChartOfAccountType t LEFT JOIN FETCH t.subTypes tst WHERE t.organisationId = :organisationId") Set<ChartOfAccountType> findAllByOrganisationId(@Param("organisationId") String organisationId)
    • findFirstByOrganisationIdAndName

      Optional<ChartOfAccountType> findFirstByOrganisationIdAndName(String organisationId, String name)
    • getMaxId

      @Query("SELECT MAX(t.id) FROM ChartOfAccountType t") Long getMaxId()