From 349c85ff745bfa83ed2f51bfc6f7eb190885f56b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=B0=95=EC=A0=95=EB=AF=BC?= Date: Thu, 8 Aug 2024 16:35:08 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20qna=20createAT=20timestamp=EB=A1=9C=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/edufocus/edufocus/qna/entity/Qna.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/backend/src/main/java/com/edufocus/edufocus/qna/entity/Qna.java b/backend/src/main/java/com/edufocus/edufocus/qna/entity/Qna.java index 901afd3..9a487ee 100644 --- a/backend/src/main/java/com/edufocus/edufocus/qna/entity/Qna.java +++ b/backend/src/main/java/com/edufocus/edufocus/qna/entity/Qna.java @@ -20,7 +20,7 @@ public class Qna { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) - @Column(name= "qna_id") + @Column(name = "qna_id") private Long id; @@ -32,7 +32,7 @@ public class Qna { @Column(name = "created_at") - @Temporal(TemporalType.DATE) + @Temporal(TemporalType.TIMESTAMP) private Date createdAt; @Column(name = "modified_at") @@ -45,13 +45,12 @@ public class Qna { private String name; @ManyToOne - @JoinColumn(name= "id") + @JoinColumn(name = "id") private User user; @ManyToOne - @JoinColumn(name= "lecture_id") + @JoinColumn(name = "lecture_id") private Lecture lecture; - }