-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BE] feat: 내가 받은 리뷰 보기 기능 구현 #109
Merged
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
f522fd7
refactor: contains 작동을 위한 EqualsAndHashcode 추가
nayonsoso 85ddfd2
fix: lazyInitialization 해결
nayonsoso a0ab043
feat: 질문 레포지토리 생성
nayonsoso b08db88
feat: 내가 받은 리뷰 응답 생성
nayonsoso 4f18dda
refactor: 리뷰 항목과 질문의 연관관계 변경 및 답변 최대 글자수 DB에 반영
nayonsoso 65a7917
refactor: 리뷰에 리뷰그룹 초기화 부분 추가
nayonsoso a8f2528
feat: 내가 받은 리뷰 조회 기능 구현
nayonsoso 022910c
feat: 받은 리뷰가 없을 때의 응답 추가
nayonsoso 453d1f4
refactor: dto 설명 추가
nayonsoso 92ea554
refactor: dto 설명 수정
nayonsoso f2e1a0d
refactor: 인자 형식 수정, 개행 수정
nayonsoso bf00a66
refactor: transactional 어노테이션 추가
nayonsoso aa87cbd
refactor: 내가 받은 리뷰 조회할 때Page객체 말고 List로 받아오도록 수정
nayonsoso 4a491fd
refactor: 미리보기 만드는 기능 도메인 안으로 이동
nayonsoso 6fcbc6d
test: 테스트 코드 개선
nayonsoso 010db8e
refactor: 마지막으로 본 리뷰ID가 없는 로직에 대해 수정
nayonsoso 3a229bb
docs: 스웨거 데코레이션 적용
nayonsoso 412523e
refactor: lastReviewId가 null 이어도 가장 최신 리뷰를 찾을 수 있도록 수정
nayonsoso 1499f37
Merge remote-tracking branch 'refs/remotes/origin/develop' into 107-g…
donghoony bdc847b
Merge remote-tracking branch 'refs/remotes/origin/develop' into 107-g…
donghoony af8cf09
Merge remote-tracking branch 'origin/107-get-my-received-review' into…
donghoony 1fb6465
refactor: eqaulsAndHashCode 재정의
nayonsoso c8e3cbe
refactor: eqaulsAndHashCode 재재정의
nayonsoso 065f752
refactor: API Docs 반영
donghoony File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
import jakarta.persistence.Id; | ||
import jakarta.persistence.JoinColumn; | ||
import jakarta.persistence.ManyToOne; | ||
import jakarta.persistence.OneToOne; | ||
import jakarta.persistence.Table; | ||
import lombok.AccessLevel; | ||
import lombok.Getter; | ||
|
@@ -31,11 +30,11 @@ public class ReviewContent { | |
@JoinColumn(name = "review_id", nullable = false) | ||
private Review review; | ||
|
||
@OneToOne | ||
@ManyToOne | ||
@JoinColumn(name = "question_id", nullable = false) | ||
private Question question; | ||
|
||
@Column(name = "answer", nullable = false) | ||
@Column(name = "answer", nullable = false, length = MAX_ANSWER_LENGTH) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. DB에 글자수 조건 반영 좋네요! @Entity
public class ReviewerGroup {
@Column(name = "description", nullable = false)
private String description; There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 헉스 그런데 제가 하면 혹시라도 conflict 날까봐 리팩터링 목록에 넣어두겠습니다! |
||
private String answer; | ||
|
||
public ReviewContent(Review review, Question question, String answer) { | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
요구사항대로 잘 되었네요 👍🏻