feat: registration cascade 옵션 추가

This commit is contained in:
kgc91747 2024-08-09 15:53:42 +09:00
parent b9c2a254b3
commit 1aaeac38fe

View File

@ -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;