Skip to content

Commit

Permalink
comment : CommentOnTopicNotification - Comment 연관관계 변경에 대한 주석 추가한다.
Browse files Browse the repository at this point in the history
  • Loading branch information
60jong committed Feb 29, 2024
1 parent f05340a commit 496fc79
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
@DiscriminatorValue(COMMENT_ON_TOPIC_NOTIFICATION)
public class CommentOnTopicNotification extends Notification {

/**
* @OneToOne 관계이지만 {@link LikeInCommentNotification}가 {@link Comment}와 @ManyToOne 이기에 @ManyToOne 설정 ({@link Notification} 의 상속 전략 : SINGLE_TABLE)
*/
@ManyToOne
@JoinColumn(name = "comment_id")
@OnDelete(action = OnDeleteAction.CASCADE)
Expand Down

0 comments on commit 496fc79

Please sign in to comment.