Interface HookRepository

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

public interface HookRepository extends org.springframework.data.jpa.repository.JpaRepository<Hook,Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<Hook>
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor

    org.springframework.data.jpa.repository.JpaSpecificationExecutor.SpecificationFluentQuery<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    findAllHooksListeningToEvent(String entityName, String actionName)
     
     

    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.jpa.repository.JpaSpecificationExecutor

    count, delete, exists, findAll, findAll, findAll, findAll, findBy, findOne

    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

    • findAllHooksListeningToEvent

      @Query("select hook from Hook hook inner join hook.events event where event.entityName = :entityName and event.actionName = :actionName and hook.isActive = true") List<Hook> findAllHooksListeningToEvent(@Param("entityName") String entityName, @Param("actionName") String actionName)
    • findOneByTemplateId

      @Query("select hook from Hook hook where hook.template.id = :templateId ") Hook findOneByTemplateId(@Param("templateId") Long templateId)