Interface InquiryUsersVoteRepository

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

@Repository public interface InquiryUsersVoteRepository extends DomainIdRepository<InquiryUsersVoteEntity,Long>
  • Method Summary

    Modifier and Type
    Method
    Description
    findAllDistinctUserIds(Long questionId, Integer domainId)
     

    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

    • findAllDistinctUserIds

      @Query("SELECT DISTINCT iuve.userId FROM InquiryUsersVoteEntity iuve WHERE iuve.questionId = :questionId AND iuve.domainId = :domainId") List<Long> findAllDistinctUserIds(@Param("questionId") Long questionId, @Param("domainId") Integer domainId)