From f6c2507200b50897212ec6a385a290bbdbe29e39 Mon Sep 17 00:00:00 2001 From: yeonjy Date: Wed, 29 May 2024 20:33:40 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20ReadNews=20Builder=20=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../rollthedice/backend/domain/news/entity/ReadNews.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/backend/core/src/main/java/com/rollthedice/backend/domain/news/entity/ReadNews.java b/backend/core/src/main/java/com/rollthedice/backend/domain/news/entity/ReadNews.java index 9c7929c3..03abeb91 100644 --- a/backend/core/src/main/java/com/rollthedice/backend/domain/news/entity/ReadNews.java +++ b/backend/core/src/main/java/com/rollthedice/backend/domain/news/entity/ReadNews.java @@ -4,6 +4,7 @@ import com.rollthedice.backend.global.config.BaseTimeEntity; import jakarta.persistence.*; import lombok.AccessLevel; +import lombok.Builder; import lombok.Getter; import lombok.NoArgsConstructor; @@ -23,4 +24,10 @@ public class ReadNews extends BaseTimeEntity { @JoinColumn(name = "news_id") private News news; + @Builder + public ReadNews(Member member, News news) { + this.member = member; + this.news = news; + } + }