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 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

      @Query("SELECT MAX (st.id) FROM ChartOfAccountSubType st") Long getMaxId()