diff --git a/daepiro-core/src/main/java/com/numberone/backend/domain/article/entity/Article.java b/daepiro-core/src/main/java/com/numberone/backend/domain/article/entity/Article.java index c0bee56e..8155a15a 100644 --- a/daepiro-core/src/main/java/com/numberone/backend/domain/article/entity/Article.java +++ b/daepiro-core/src/main/java/com/numberone/backend/domain/article/entity/Article.java @@ -25,11 +25,11 @@ public class Article extends BaseTimeEntity { @Column(name = "article_id") private Long id; - @OneToMany(mappedBy = "article", cascade = {CascadeType.PERSIST, CascadeType.MERGE}, orphanRemoval = true) - private List comments = new ArrayList<>(); +// @OneToMany(mappedBy = "article", cascade = {CascadeType.PERSIST, CascadeType.MERGE}, orphanRemoval = true) +// private List comments = new ArrayList<>(); - @OneToMany(mappedBy = "article", cascade = {CascadeType.PERSIST, CascadeType.MERGE}, orphanRemoval = true) - private List articleParticipants = new ArrayList<>(); +// @OneToMany(mappedBy = "article", cascade = {CascadeType.PERSIST, CascadeType.MERGE}, orphanRemoval = true) +// private List articleParticipants = new ArrayList<>(); @OneToMany(mappedBy = "article", cascade = {CascadeType.PERSIST, CascadeType.MERGE}, orphanRemoval = true) private List articleImages = new ArrayList<>(); diff --git a/daepiro-core/src/main/java/com/numberone/backend/domain/comment/entity/CommentEntity.java b/daepiro-core/src/main/java/com/numberone/backend/domain/comment/entity/CommentEntity.java index 24978a86..143b8187 100644 --- a/daepiro-core/src/main/java/com/numberone/backend/domain/comment/entity/CommentEntity.java +++ b/daepiro-core/src/main/java/com/numberone/backend/domain/comment/entity/CommentEntity.java @@ -43,8 +43,8 @@ public class CommentEntity extends BaseTimeEntity { @JoinColumn(name = "parent_id") private CommentEntity parent; - @OneToMany(mappedBy = "parent", orphanRemoval = true) - private List childs = new ArrayList<>(); +// @OneToMany(mappedBy = "parent", orphanRemoval = true) +// private List childs = new ArrayList<>(); public CommentEntity(String content, Article article, Member author) { this.depth = 0; diff --git a/daepiro-core/src/main/java/com/numberone/backend/domain/conversation/entity/Conversation.java b/daepiro-core/src/main/java/com/numberone/backend/domain/conversation/entity/Conversation.java index df521199..8007a73d 100644 --- a/daepiro-core/src/main/java/com/numberone/backend/domain/conversation/entity/Conversation.java +++ b/daepiro-core/src/main/java/com/numberone/backend/domain/conversation/entity/Conversation.java @@ -43,8 +43,8 @@ public class Conversation extends BaseTimeEntity { @JoinColumn(name = "conversation_id") private Conversation parent; - @OneToMany(mappedBy = "parent", cascade = CascadeType.ALL) - private List conversations = new ArrayList<>(); +// @OneToMany(mappedBy = "parent", cascade = CascadeType.ALL) +// private List conversations = new ArrayList<>(); @OneToMany(mappedBy = "conversation", cascade = CascadeType.ALL) private List likes = new ArrayList<>(); diff --git a/daepiro-core/src/main/java/com/numberone/backend/domain/member/entity/Member.java b/daepiro-core/src/main/java/com/numberone/backend/domain/member/entity/Member.java index 84d1b6a5..554dcb8d 100644 --- a/daepiro-core/src/main/java/com/numberone/backend/domain/member/entity/Member.java +++ b/daepiro-core/src/main/java/com/numberone/backend/domain/member/entity/Member.java @@ -53,14 +53,14 @@ public class Member extends BaseTimeEntity { @Comment("마음 갯수") private Integer heartCnt; - @OneToMany(mappedBy = "member", cascade = CascadeType.ALL) - private List supports = new ArrayList<>(); - - @OneToMany(mappedBy = "member", cascade = {CascadeType.PERSIST, CascadeType.MERGE}, orphanRemoval = true) - private List commentLikes = new ArrayList<>(); - - @OneToMany(mappedBy = "member", cascade = {CascadeType.PERSIST, CascadeType.MERGE}, orphanRemoval = true) - private List articleLikes = new ArrayList<>(); +// @OneToMany(mappedBy = "member", cascade = CascadeType.ALL) +// private List supports = new ArrayList<>(); +// +// @OneToMany(mappedBy = "member", cascade = {CascadeType.PERSIST, CascadeType.MERGE}, orphanRemoval = true) +// private List commentLikes = new ArrayList<>(); +// +// @OneToMany(mappedBy = "member", cascade = {CascadeType.PERSIST, CascadeType.MERGE}, orphanRemoval = true) +// private List articleLikes = new ArrayList<>(); @OneToMany(mappedBy = "member", cascade = {CascadeType.PERSIST, CascadeType.MERGE}, orphanRemoval = true) private List friendships = new ArrayList<>(); @@ -77,8 +77,8 @@ public class Member extends BaseTimeEntity { @OneToMany(mappedBy = "member", cascade = CascadeType.ALL) private List notificationRegions = new ArrayList<>(); - @OneToMany(mappedBy = "member", cascade = CascadeType.ALL) - private List conversationLikes = new ArrayList<>(); +// @OneToMany(mappedBy = "member", cascade = CascadeType.ALL) +// private List conversationLikes = new ArrayList<>(); @Comment("온/오프라인 유무") private Boolean session;