Page 480 - MDP2022-3
P. 480
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class EssentialComment {
private Long id;
private String comment;
private LocalDateTime commentCreatedTime;
private LocalDateTime commentUpdateTime;
private String nickname;
private Long reportId;
public EssentialComment(Comment comment)
{
this.id = comment.getCommentId();
this.comment = comment.getComment();
this.commentCreatedTime = comment.getCommentCreateTime();
this.commentUpdateTime = comment.getCommentUpdateTime();
this.nickname = comment.getUserInfo().getUserNickName();
this.reportId = comment.getReport().getReportId();
}
}
com.webmister.semicolon.dto.EssentialFriendMatchDto
import com.webmister.semicolon.domain.UserInfo;
import lombok.Data;
@Data
public class EssentialFriendMatchDto {
UserInfo postFriendId;
UserInfo receiveFriendId;
public EssentialFriendMatchDto(UserInfo postFriendId, UserInfo receiveFriendId){
this.postFriendId = postFriendId;
this.receiveFriendId = receiveFriendId;
}
}
com.webmister.semicolon.dto.EssentialReport
import com.webmister.semicolon.domain.Report;
import lombok.Data;