Skip to content

Commit

Permalink
[#168] refactor(exitRootFolder) : folder Todo.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ji-Ha committed Aug 14, 2022
1 parent 3c2e9e9 commit 0a580de
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class Folder(
@JsonManagedReference
var children: MutableList<Folder>? = mutableListOf()

// TODO: 2022/08/14 cascadeType.REMOVE도 포함되어 있기 때문에, delete문이 실행된다고함. 이를 빼고 진행할 수 있도록 그리고 orphanRemoval만 사용했을 때 좋은 이유를 확실히 알것
@OneToMany(mappedBy = "folder", cascade = [CascadeType.ALL], orphanRemoval = true)
var folders: MutableList<AccountFolder>? = mutableListOf()

Expand Down

0 comments on commit 0a580de

Please sign in to comment.