From 1aaeac38fede8ed78b88dabfd10d89c744dc6d8f Mon Sep 17 00:00:00 2001 From: kgc91747 Date: Fri, 9 Aug 2024 15:53:42 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20registration=20cascade=20=EC=98=B5?= =?UTF-8?q?=EC=85=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../edufocus/edufocus/registration/entity/Registration.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/com/edufocus/edufocus/registration/entity/Registration.java b/backend/src/main/java/com/edufocus/edufocus/registration/entity/Registration.java index c5d302a..1d2870d 100644 --- a/backend/src/main/java/com/edufocus/edufocus/registration/entity/Registration.java +++ b/backend/src/main/java/com/edufocus/edufocus/registration/entity/Registration.java @@ -22,11 +22,11 @@ public class Registration { @GeneratedValue(strategy = GenerationType.IDENTITY) private long id; - @ManyToOne + @ManyToOne(cascade = CascadeType.ALL) @JoinColumn(name = "user_id") private User user; - @ManyToOne + @ManyToOne(cascade = CascadeType.ALL) @JoinColumn(name = "lecture_id") private Lecture lecture;