-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feature/#29 community category likes 레포지토리 구현 #30
The head ref may contain hidden characters: "feature/#29-feat-community-category-likes-\uB808\uD3EC\uC9C0\uD1A0\uB9AC-\uAD6C\uD604"
Feature/#29 community category likes 레포지토리 구현 #30
Conversation
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Long likesId; |
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.
굳이 엔티티명과 같을 이유 없습니다. like로 가시고 Entity 도 Like로 하고 @table(name = "likes") 로 해결하시죠.
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.
오 넵! 수정 하겠습니다
public interface CommunityRepository extends JpaRepository<Community, Long> { | ||
|
||
// 카테고리별 게시글 목록 조회 (최신순으로 정렬) | ||
@Query("SELECT c FROM Community c " + |
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.
"""
SELECT c FROM Community c WHERE ... ORDER BY c.createdAt DESC
"""
형식으로 바꾸시는건 어떨까요?
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.
수고하셨습니다!
🔓closed #29
#️⃣연관된 이슈
#29
📝작업 내용
community category likes 레포지토리 구현
스크린샷 (선택)
💬리뷰 요구사항(선택)