Interface QualityRuleRepository

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

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

    Modifier and Type
    Method
    Description
    boolean
     
     
     
     

    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

    • findByEnabledTrue

      List<QualityRuleEntity> findByEnabledTrue()
    • findByCategoryUidAndEnabledTrue

      List<QualityRuleEntity> findByCategoryUidAndEnabledTrue(String categoryUid)
    • findMatchingRules

      @Query("SELECT r FROM QualityRuleEntity r WHERE (r.categoryUid = ?1 OR r.categoryUid IS NULL) AND r.enabled = true") List<QualityRuleEntity> findMatchingRules(String categoryUid)
    • existsByNameAndIdNot

      boolean existsByNameAndIdNot(String name, Long id)