This commit is contained in:
박정민 2024-08-09 16:12:03 +09:00
commit 5bc56fc2a7

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;