Merge branch 'be/registration' into 'backend'

feat: registration cascade 옵션 추가

See merge request s11-webmobile1-sub2/S11P12A701!149
This commit is contained in:
김한얼 2024-08-09 15:54:48 +09:00
commit 8d19361601

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;