Skip to content

Commit

Permalink
#16 fix: Chatting엔티티 nickName, profileImgUrl 변수명 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
xhaktmchl committed Nov 22, 2022
1 parent e0760f4 commit f0f410f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
14 changes: 7 additions & 7 deletions src/main/java/shop/geeksasangchat/domain/Chatting.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
@Document //@Document는객체를 몽고DB에 영속화시킴 = SpringDataJpa의 @Entity와 같은 역할
@ToString
@Getter
public class Chatting implements Serializable {
public class Chatting implements Serializable {

@Id
public String id;
Expand All @@ -28,9 +28,9 @@ public class Chatting implements Serializable {

private Boolean isSystemMessage;

private String senderNickName;
private String nickName;

private String senderImgUrl;
private String profileImgUrl;

private List<String> readMembers = new ArrayList<>(); // 읽은 멤버 리스트

Expand All @@ -42,14 +42,14 @@ public Chatting(String content) {
this.baseEntity = new BaseEntity();
}

public Chatting(String content, PartyChattingRoom partyChattingRoom, Boolean isSystemMessage, String senderNickName, String senderImgUrl, List<String> readMembers) {
public Chatting(String content, PartyChattingRoom partyChattingRoom, Boolean isSystemMessage, String nickName, String profileImgUrl, List<String> readMembers, BaseEntity baseEntity) {
this.content = content;
this.partyChattingRoom = partyChattingRoom;
this.isSystemMessage = isSystemMessage;
this.senderNickName = senderNickName;
this.senderImgUrl = senderImgUrl;
this.nickName = nickName;
this.profileImgUrl = profileImgUrl;
this.readMembers = readMembers;
this.baseEntity = new BaseEntity();
this.baseEntity = baseEntity;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,9 @@ public class PartyChattingRoom extends ChattingRoom{
private String title;

//TODO:채팅과 일대다 연관관계 테스트 중
// @DBRef
// private List<Chatting> chattings;
@DocumentReference // 일대다
private List<Chatting> chattings = new ArrayList<>();

// @DocumentReference // 일대다
private List<ParticipantInfo> participants = new ArrayList<>();

// private String accountNumber;
Expand Down

0 comments on commit f0f410f

Please sign in to comment.