Skip to content

Commit

Permalink
fix: 잘못 삽입한 코드 위치 수정 #359
Browse files Browse the repository at this point in the history
  • Loading branch information
mingmingmon committed Jun 3, 2024
1 parent dce206e commit 0a01c0f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ public class Comment extends BaseEntity {
@ManyToOne
@JoinColumn(name = "parent_id")
@JsonIgnoreProperties("children")
@OrderBy("createdAt ASC")
private Comment parent;

@Builder.Default
@OneToMany(mappedBy = "parent", orphanRemoval = true)
@JsonIgnoreProperties("parent")
@OrderBy("createdAt ASC")
private List<Comment> children = new ArrayList<>();

@Column(nullable = false)
Expand Down

0 comments on commit 0a01c0f

Please sign in to comment.