feat: ondelete 설정

This commit is contained in:
박정민 2024-08-09 15:27:51 +09:00
parent f2ccdd5620
commit 00680262a4
2 changed files with 1 additions and 2 deletions

View File

@ -16,7 +16,7 @@ import java.util.Date;
@NoArgsConstructor
@AllArgsConstructor
@OnDelete(action = OnDeleteAction.CASCADE)
public class Qna {
// 연관관계 주인

View File

@ -24,7 +24,6 @@ import java.util.List;
@Builder
@EntityListeners(AuditingEntityListener.class)
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
@OnDelete(action = OnDeleteAction.CASCADE)
public class Report {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)