diff --git a/src/main/java/org/likelion/likelion_12th_team05/curation/domain/repository/CurationRepository.java b/src/main/java/org/likelion/likelion_12th_team05/curation/domain/repository/CurationRepository.java index db5e3b7..30f21f9 100644 --- a/src/main/java/org/likelion/likelion_12th_team05/curation/domain/repository/CurationRepository.java +++ b/src/main/java/org/likelion/likelion_12th_team05/curation/domain/repository/CurationRepository.java @@ -16,7 +16,7 @@ public interface CurationRepository extends JpaRepository { Optional findById(Long curationId); // 좋아요 수 많은 순으로 큐레이션 6개만 조회 (limit => sql, Curation c -> Jpql 따라서 Curation c 라고 쓰면 조회 안 됨) - @Query(value = "SELECT * FROM Curation ORDER BY like_count DESC limit 6", nativeQuery = true) + @Query(value = "SELECT * FROM curation ORDER BY like_count DESC limit 6", nativeQuery = true) List findTop6ByOrderByLikeCountDesc(); // 최신순 조회