Skip to content

Commit

Permalink
feat: ReadNews Builder 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
yeonjy committed May 29, 2024
1 parent 2f600eb commit f6c2507
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
}

}

0 comments on commit f6c2507

Please sign in to comment.