Interface InquiryAnswerRepository

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

@Repository public interface InquiryAnswerRepository extends DomainIdRepository<InquiryAnswerEntity,Long>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    deleteAnswers(Integer questionId, Integer domainId)
     
     
    org.springframework.data.domain.Page<InquiryAnswerEntity>
    findAllByQuestionIdAndDomainId(Integer questionId, Integer domainId, org.springframework.data.domain.Pageable pageable)
     

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface sk.iway.iwcm.system.datatable.spring.DomainIdRepository

    findAllByDomainId, findAllByDomainId, findFirstByIdAndDomainId

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor

    count, findAll, findAll, findAll, findOne

    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

    • findAllByQuestionIdAndDomainId

      org.springframework.data.domain.Page<InquiryAnswerEntity> findAllByQuestionIdAndDomainId(Integer questionId, Integer domainId, org.springframework.data.domain.Pageable pageable)
    • findAllByQuestionIdAndDomainId

      List<InquiryAnswerEntity> findAllByQuestionIdAndDomainId(Integer questionId, Integer domainId)
    • deleteAnswers

      @Transactional @Modifying @Query("DELETE FROM InquiryAnswerEntity WHERE questionId = :questionId AND domainId = :domainId") void deleteAnswers(@Param("questionId") Integer questionId, @Param("domainId") Integer domainId)