feat: casacade 추기

This commit is contained in:
박정민 2024-08-09 15:35:02 +09:00
parent 00680262a4
commit 4cc6cec8f8
2 changed files with 1 additions and 1 deletions

View File

@ -54,6 +54,7 @@ public class Qna {
@ManyToOne @ManyToOne
@JoinColumn(name = "lecture_id") @JoinColumn(name = "lecture_id")
@OnDelete(action = OnDeleteAction.CASCADE)
private Lecture lecture; private Lecture lecture;
private boolean isMine; private boolean isMine;

View File

@ -25,7 +25,6 @@ import java.util.UUID;
@AllArgsConstructor @AllArgsConstructor
@EntityListeners(AuditingEntityListener.class) @EntityListeners(AuditingEntityListener.class)
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY) @JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
@OnDelete(action = OnDeleteAction.CASCADE)
public class ReportSet { public class ReportSet {
@Id @Id
@GeneratedValue(generator = "UUID") @GeneratedValue(generator = "UUID")