Interface ChartOfAccountSubTypeRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<ChartOfAccountSubType,,String> org.springframework.data.jpa.repository.JpaRepository<ChartOfAccountSubType,,String> org.springframework.data.repository.ListCrudRepository<ChartOfAccountSubType,,String> org.springframework.data.repository.ListPagingAndSortingRepository<ChartOfAccountSubType,,String> org.springframework.data.repository.PagingAndSortingRepository<ChartOfAccountSubType,,String> org.springframework.data.repository.query.QueryByExampleExecutor<ChartOfAccountSubType>,org.springframework.data.repository.Repository<ChartOfAccountSubType,String>
public interface ChartOfAccountSubTypeRepository
extends org.springframework.data.jpa.repository.JpaRepository<ChartOfAccountSubType,String>
-
Method Summary
Modifier and TypeMethodDescriptionfindAllByOrganisationIdAndSubTypeId(String organisationId, String subTypeId) findFirstByNameAndOrganisationIdAndParentName(String organisationId, String name, String typeName) 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
-
findAllByType
@Query("SELECT st FROM ChartOfAccountSubType st WHERE st.type = :type") Set<ChartOfAccountSubType> findAllByType(@Param("type") ChartOfAccountType type) -
findAllByOrganisationIdAndSubTypeId
@Query("SELECT st FROM ChartOfAccountSubType st WHERE st.organisationId = :organisationId AND st.id = :subTypeId ") Optional<ChartOfAccountSubType> findAllByOrganisationIdAndSubTypeId(@Param("organisationId") String organisationId, @Param("subTypeId") String subTypeId) -
findFirstByNameAndOrganisationIdAndParentName
@Query("SELECT st FROM ChartOfAccountSubType st WHERE st.organisationId = :organisationId AND st.name = :name AND st.type.name = :typeName") Optional<ChartOfAccountSubType> findFirstByNameAndOrganisationIdAndParentName(@Param("organisationId") String organisationId, @Param("name") String name, @Param("typeName") String typeName) -
findFirstByOrganisationIdAndName
Optional<ChartOfAccountSubType> findFirstByOrganisationIdAndName(String organisationId, String name) -
getMaxId
-