From b398c36cb72c7b8efc153fdd012cb363d034fa01 Mon Sep 17 00:00:00 2001
From: Oisin
-
- * Sets the question lesson id attribute of a question model
+ * Sets the lesson id attribute of a question model * - * @param lessonId the question lesson id attribute + * @param lessonId the lesson id attribute */ public void setLessonId(Integer lessonId) { this.lessonId = lessonId; } + + /** + *+ * Gets the question lesson id attribute of a question model
+ * + * @return the question lesson id attribute + */ + public Integer getLessonQuestionId() { + return lessonQuestionId; + } + + /** + *+ * Sets the question lesson id attribute of a question model
+ * + * @param lessonId the question lesson id attribute + */ + public void setQuestionLessonId(Integer lessonQuestionId) { + this.lessonQuestionId = lessonQuestionId; + } + /** ** Gets the question phrase attribute of a question model
From 89109b594f350d0db386ff3a87fd19f8fe24b6d4 Mon Sep 17 00:00:00 2001 From: Oisin+ * Determines if an answer already exists by an answer id
+ * + * @param answerId the answer id to find if exists + * @return whether the answer model exists or not + */ + public Boolean existsById(Integer answerId) { + return answerCrudRepository.existsById(answerId); + } + } From 6d9b037dbdc6123c09c7dcc8565df2fa91f49352 Mon Sep 17 00:00:00 2001 From: Oisin+ * Determines if a result already exists by a result id
+ * + * @param resultId the result id to find if exists + * @return whether the result model exists or not + */ + public Boolean existsById(Integer resultId) { + return resultCrudRepository.existsById(resultId); + } + + /** + *+ * Determines if a result already exists by a lesson id
+ * + * @param lessonId the lesson id to find if results exists for + * @return whether the result model exists or not + */ + public Boolean existsByLessonId(Integer lessonId) { + return resultCrudRepository.existsByLessonId(String.valueOf(lessonId)); + } + } From ebbf4f144fcb221fad6128b0fe4039bad1b748ab Mon Sep 17 00:00:00 2001 From: Oisin+ * Retrieves a question model using a lesson id and a question lesson id.
+ * + * @param lessonLid the lesson question to find + * @param lessonQuestionId the lesson question id to find + * @return the question model + */ + public QuestionModel getQuestionByLessonQuestionIds(Integer lessonLid, Integer lessonQuestionId) { + return questionCrudRepository.getQuestionByLessonQuestionIds(lessonLid, lessonQuestionId); + } } From adc1be32843af39ff07b80dea44618c098e7ab8e Mon Sep 17 00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