Skip to content

[REFACTOR] 게시글 삭제시 하위 엔티티 동시에 제거 #175

@yeongsang2

Description

@yeongsang2

✨ 수정 이유

  • 현재 article 삭제시 자식 articleLike와 comment를 먼저 다로 제거 해주어야함
  • 영속성 전이를 통해 자식 엔티티의 생명 주기를 관리할 수 있음

🛠 수정 사항

  • article에 articleLike, comment 다대일 양방향 연관관계 추가
  • cascadetype 지정

✅ 참고 사항

refactor155랑 같은데 충돌문제 발생해서 새로운 branch만들어서 pr할 계획입니다.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions