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 @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@OnDelete(action = OnDeleteAction.CASCADE)
public class Qna { public class Qna {
// 연관관계 주인 // 연관관계 주인

View File

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