diff --git a/backend/src/main/java/corea/matching/domain/MatchResult.java b/backend/src/main/java/corea/matching/domain/MatchResult.java index 31f29c309..79a8d4ded 100644 --- a/backend/src/main/java/corea/matching/domain/MatchResult.java +++ b/backend/src/main/java/corea/matching/domain/MatchResult.java @@ -1,6 +1,5 @@ package corea.matching.domain; - import corea.member.domain.Member; import jakarta.persistence.*; import lombok.AllArgsConstructor; @@ -15,6 +14,7 @@ @NoArgsConstructor(access = PROTECTED) @Getter public class MatchResult { + @Id @GeneratedValue(strategy = IDENTITY) private Long id; @@ -22,10 +22,10 @@ public class MatchResult { private long roomId; @ManyToOne(fetch = FetchType.LAZY) - private Member fromMemberId; + private Member fromMember; @ManyToOne(fetch = FetchType.LAZY) - private Member toMemberId; + private Member toMember; private String prLink; diff --git a/backend/src/main/java/corea/member/domain/Member.java b/backend/src/main/java/corea/member/domain/Member.java index f864186f6..1ab6fddd1 100644 --- a/backend/src/main/java/corea/member/domain/Member.java +++ b/backend/src/main/java/corea/member/domain/Member.java @@ -29,7 +29,9 @@ public class Member { private float attitude; - public Member(String userName, String thumbnailUrl, String name, String email, boolean isEmailAccepted, Float attitude) { - this(null, userName, thumbnailUrl, name, email, isEmailAccepted, attitude); + private String profileLink; + + public Member(String userName, String thumbnailUrl, String name, String email, boolean isEmailAccepted, float attitude) { + this(null, userName, thumbnailUrl, name, email, isEmailAccepted, attitude, null); } }