package com.davos.assessment.assessment;

import java.util.List;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;

public interface QuestionRepository extends JpaRepository<Question, Long> {
  List<Question> findByAssessmentOrderBySortOrderAsc(Assessment assessment);
  Optional<Question> findByCode(String code);
}
