Skip to content

Commit

Permalink
Merge pull request #19 from Tave-13th-Project-Team-4-Fiurinee/feature…
Browse files Browse the repository at this point in the history
…/entity

fix: Member 엔티티 수정
  • Loading branch information
qormoon authored Jun 17, 2024
2 parents b38114f + 42f4fa7 commit df72741
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
package com.example.fiurinee.domain.member.entity;

import com.example.fiurinee.domain.anniversary.entity.Anniversary;
import com.example.fiurinee.domain.inputMessage.entity.InputMessage;
import com.example.fiurinee.domain.preferList.entity.PreferList;
import com.example.fiurinee.domain.recommendComment.entity.RecommendComment;
import com.example.fiurinee.domain.recommendFlower.entity.RecommendFlower;
import jakarta.persistence.*;
import lombok.AccessLevel;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;

import java.util.List;

@Getter
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@Entity
Expand All @@ -30,6 +37,21 @@ public class Member {

private boolean alarm;

@OneToMany(mappedBy = "member")
private List<PreferList> preferLists;

@OneToMany(mappedBy = "member")
private List<Anniversary> anniversaries;

@OneToMany(mappedBy = "member")
private List<RecommendFlower> recommendFlowers;

@OneToMany(mappedBy = "member")
private List<InputMessage> inputMessages;

@OneToMany(mappedBy = "member")
private List<RecommendComment> recommendComments;

@Builder
private Member(String email, String name, String socialId, Role role, String kakaoAccessToken, int profileImage, boolean alarm) {
this.email = email;
Expand Down

0 comments on commit df72741

Please sign in to comment.