Interface ReportTypeRepository

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

public interface ReportTypeRepository extends org.springframework.data.jpa.repository.JpaRepository<ReportTypeEntity,Long>
  • Method Summary

    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

    • findByOrganisationAndReportName

      @Query(" SELECT rse\n FROM ReportTypeEntity rse\n WHERE rse.organisationId = :organisationID\n AND rse.name = :name\n") Optional<ReportTypeEntity> findByOrganisationAndReportName(@Param("organisationID") String organisationID, @Param("name") String name)
    • findByOrganisationIdAndId

      @Query(" SELECT rse\n FROM ReportTypeEntity rse\n WHERE rse.organisationId = :organisationID\n AND rse.id = :id\n") Optional<ReportTypeEntity> findByOrganisationIdAndId(@Param("organisationID") String organisationId, @Param("id") Long id)
    • findAllByOrganisationId

      List<ReportTypeEntity> findAllByOrganisationId(String orgId)
    • findByOrganisationIdAndName

      Optional<ReportTypeEntity> findByOrganisationIdAndName(String orgId, String name)