Interface IncidentRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Incident,,Long> IncidentRepositoryCriteria,org.springframework.data.jpa.repository.JpaRepository<Incident,,Long> org.springframework.data.repository.ListCrudRepository<Incident,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<Incident,,Long> org.springframework.data.repository.PagingAndSortingRepository<Incident,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<Incident>,org.springframework.data.repository.Repository<Incident,Long>
@Repository
public interface IncidentRepository
extends org.springframework.data.jpa.repository.JpaRepository<Incident,Long>, IncidentRepositoryCriteria
UML Diagrams:

- Since:
- 2024-1108
- Author:
- arcbrth@gmail.com
-
Method Summary
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
-
findByCriteria
@Query("SELECT i FROM Incident i WHERE (:title IS NULL OR i.title = :title) AND (:status IS NULL OR i.statusID.name = :status) AND (:priority IS NULL OR i.priorityID.name = :priority)") List<Incident> findByCriteria(@Param("title") String title, @Param("status") String status, @Param("priority") String priority) -
findByCriteriaWithCriteriaAPI
- Specified by:
findByCriteriaWithCriteriaAPIin interfaceIncidentRepositoryCriteria
-