feat: ondelete 설정
This commit is contained in:
parent
f2ccdd5620
commit
00680262a4
@ -16,7 +16,7 @@ import java.util.Date;
|
|||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
|
|
||||||
@OnDelete(action = OnDeleteAction.CASCADE)
|
|
||||||
public class Qna {
|
public class Qna {
|
||||||
|
|
||||||
// 연관관계 주인
|
// 연관관계 주인
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user