Merge branch 'be/registration' into 'backend'
feat: registration cascade 옵션 추가 See merge request s11-webmobile1-sub2/S11P12A701!149
This commit is contained in:
commit
8d19361601
@ -22,11 +22,11 @@ public class Registration {
|
|||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
private long id;
|
private long id;
|
||||||
|
|
||||||
@ManyToOne
|
@ManyToOne(cascade = CascadeType.ALL)
|
||||||
@JoinColumn(name = "user_id")
|
@JoinColumn(name = "user_id")
|
||||||
private User user;
|
private User user;
|
||||||
|
|
||||||
@ManyToOne
|
@ManyToOne(cascade = CascadeType.ALL)
|
||||||
@JoinColumn(name = "lecture_id")
|
@JoinColumn(name = "lecture_id")
|
||||||
private Lecture lecture;
|
private Lecture lecture;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user