package com.pharmacopoeia.repository;

import com.pharmacopoeia.entity.Question;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;
import java.util.Optional;

public interface QuestionRepository extends JpaRepository<Question, Long>,
        JpaSpecificationExecutor<Question> {
    Optional<Question> findByQuestionId(String questionId);
    long countByAuditedTrue();
    long countByAuditedFalse();
}
