You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

15 lines
459 B

package com.mydreamjob.ability;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
import java.util.Optional;
public interface AbilityAttemptQuestionRepository extends JpaRepository<AbilityAttemptQuestion, Long> {
List<AbilityAttemptQuestion> findByAttemptIdOrderByPositionAsc(Long attemptId);
boolean existsByAttemptIdAndQuestionId(Long attemptId, Long questionId);
long countByAttemptId(Long attemptId);
}