Skip to content

Commit

Permalink
refactor: 도메인 수정 (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
hjk0761 authored Jul 18, 2024
1 parent 3d206f7 commit 759ebf2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions backend/src/main/java/corea/matching/domain/MatchResult.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package corea.matching.domain;


import corea.member.domain.Member;
import jakarta.persistence.*;
import lombok.AllArgsConstructor;
Expand All @@ -15,17 +14,18 @@
@NoArgsConstructor(access = PROTECTED)
@Getter
public class MatchResult {

@Id
@GeneratedValue(strategy = IDENTITY)
private Long id;

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;

Expand Down
6 changes: 4 additions & 2 deletions backend/src/main/java/corea/member/domain/Member.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 759ebf2

Please sign in to comment.