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
Modifier and TypeMethodDescriptionfindAllByOrganisationId(String orgId) findByOrganisationAndReportName(String organisationID, String name) findByOrganisationIdAndId(String organisationId, Long id) findByOrganisationIdAndName(String orgId, String name) 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
-
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
-
findByOrganisationIdAndName
-