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 TypeMethodDescriptionfindAllByOrganisationId(String organisationId) findFirstByOrganisationIdAndName(String organisationId, String name) getMaxId()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
-
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
-
getMaxId
-