-
Notifications
You must be signed in to change notification settings - Fork 4
epic/뉴스리스트조회 #74
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
epic/뉴스리스트조회 #74
The head ref may contain hidden characters: "feat-\uB274\uC2A4-\uAE30\uB2A5"
Conversation
Zy0ung
left a comment
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.
코드 확인했습니다! 코드 리뷰까지 쓰시는거 대단하세요ㅠㅠ 보고 배우겠습니다 ✨
src/main/java/org/myteam/server/global/exception/PlayHiveExceptionController.java
Show resolved
Hide resolved
src/main/java/org/myteam/server/global/page/response/PageCustom.java
Outdated
Show resolved
Hide resolved
src/main/java/org/myteam/server/global/page/response/PageableCustom.java
Outdated
Show resolved
Hide resolved
src/main/java/org/myteam/server/news/dto/controller/request/NewsRequest.java
Show resolved
Hide resolved
| import org.myteam.server.news.entity.NewsCount; | ||
| import org.springframework.data.jpa.repository.JpaRepository; | ||
|
|
||
| public interface NewsCountRepository extends JpaRepository<NewsCount, Long> { |
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.
저희 JpaRepository를 상속받으면 @Repository 어노테이션 삭제하는 것이 정책인가요?
오히려 있는 것이 가독성 측면에서 좋지 않을까요?
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.
저는 JpaRepository를 상속했으니 Repository라는건 정확하게 인지가 된다고 생각해서 제거를 한겁니다
근데 영웅님 말씀대로 다른분들도 @repository가 있는게 더 명확하다 하시면 명시해줘도 무방하다고 생각합니다!
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.
저는 두분 말씀 둘 다 맞다고 생각해서 다수 의견으로 따르겠습니당 :)
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.
확실하게 붙히는걸로 가시죠!
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.
그리고 현재 제가 Entity클래스들은 entity라는 패키지에 넣고 있는데 Entity뿐만 아니라 다른 객체들도 포함될 확률이 있어서 영웅님 처럼 domain 패키지가 더 좋아보이네요!
domain패키지로 다들 통일하는거 어떤가요?
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.
의견 들어주셔서 감사합니다😊
domain도 역시 좋습니다!
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.
그럼 domain 패키지안에 Enum이나 엔티티 넣으면 될까용?
저도 다음 PR 올리면서 작업 했던 Repository 클래스에 어노테이션 붙여놓겠습니당 !
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.
저도 domain 패키지로 통일 하는 것에 동의합니다.
net79736
left a comment
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.
수고하셨습니다^^
| import org.myteam.server.news.entity.NewsCount; | ||
| import org.springframework.data.jpa.repository.JpaRepository; | ||
|
|
||
| public interface NewsCountRepository extends JpaRepository<NewsCount, Long> { |
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.
저도 domain 패키지로 통일 하는 것에 동의합니다.
기능 설명
작업 내용
수정 사항
추가 작업 예정
테스트
1,2,3 테스트코드로 구현 확인완료