From 81101db38cff3afaf65c8d01eef8610fdc242b48 Mon Sep 17 00:00:00 2001 From: ri-naa Date: Fri, 12 Jan 2024 18:51:46 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20=EC=9E=AC=EB=82=9C=20=ED=80=B4=EC=A6=88?= =?UTF-8?q?=20=EC=97=94=ED=8B=B0=ED=8B=B0=20=EC=88=98=EC=A0=95=20#32?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/ALGo/ALGo_server/entity/Quiz.java | 3 +++ .../ALGo/ALGo_server/repository/QuizRepository.java | 10 ++++++++++ 2 files changed, 13 insertions(+) create mode 100644 src/main/java/com/ALGo/ALGo_server/repository/QuizRepository.java diff --git a/src/main/java/com/ALGo/ALGo_server/entity/Quiz.java b/src/main/java/com/ALGo/ALGo_server/entity/Quiz.java index a202381..569e8d9 100644 --- a/src/main/java/com/ALGo/ALGo_server/entity/Quiz.java +++ b/src/main/java/com/ALGo/ALGo_server/entity/Quiz.java @@ -19,4 +19,7 @@ public class Quiz { @Column(nullable = false) private boolean answer; + @Column(nullable = false) + private String description; + } diff --git a/src/main/java/com/ALGo/ALGo_server/repository/QuizRepository.java b/src/main/java/com/ALGo/ALGo_server/repository/QuizRepository.java new file mode 100644 index 0000000..75d6f7b --- /dev/null +++ b/src/main/java/com/ALGo/ALGo_server/repository/QuizRepository.java @@ -0,0 +1,10 @@ +package com.ALGo.ALGo_server.repository; + +import com.ALGo.ALGo_server.entity.Quiz; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface QuizRepository extends JpaRepository { + + Quiz findByQuiz_id(Long quiz_id); + +}