Open
Conversation
won983212
approved these changes
Feb 13, 2023
Collaborator
won983212
left a comment
There was a problem hiding this comment.
User에서 Builder를 사용하는 것이 문제가 없는지 궁금합니다.
네 문제 없을 것 같습니다. 저도 Entity를 초기화하는 방법으로 Builder를 자주 사용합니다. 다만 @Builder를 붙인 생성자를 private으로 사용하는 걸 권장드립니다. 특별한 이유가 없는 한 Builder이외 다른 방법으로 객체 생성을 하지 않도록 하는 게 좋을 것 같습니다.
지금은 이미지 파일을 상품엔티티의 컬럼으로 설정 했는데, 테이블을 따로 분리하는것이 더 좋은 방법인지 궁금합니다.
이미지 파일이 1개라면 문제가 되지않습니다. 여러 개를 사용하시게 될 경우에는 테이블로 따로 빼셔야합니다. 향후에 여러 개를 등록할 수 있도록 하는 경우에 대비해서 따로 테이블로 빼셔도 좋을 것 같습니다,
Collaborator
|
Swagger는 springdoc을 사용하신다면, https://springdoc.org/을 참고해보시면 좋을 것 같습니다. 공식 문서가 꽤 잘 되어있습니다! (OpenAPI 버전3 기준입니다) Redis는 제가 깊게 공부를 해본 경험이 없어서 추천 드리기가 어렵네요 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
이번 주에 어떤 작업을 했는지 설명해주세요.
특히 어떤 부분을 리뷰받고 싶나요?
이번 주는 어떻게 학습했나요? 아래 질문에 짧게 답변주세요!
이번 주에 학습에 투자한 시간
학습 하면서 좋았던 점과 아쉬웠던 점
어려움을 겪는 부분
스터디 개선되었으면 하는 점