Skip to content

Commit

Permalink
Merge pull request #33 from LikeLion-12th-SKHU/develop
Browse files Browse the repository at this point in the history
Develop -> main push
  • Loading branch information
ttttkii913 authored Jul 24, 2024
2 parents 9234a3e + 4d030d5 commit 9fe5547
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public interface CurationRepository extends JpaRepository<Curation, Long> {
Optional<Curation> 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<Curation> findTop6ByOrderByLikeCountDesc();

// ์ตœ์‹ ์ˆœ ์กฐํšŒ
Expand Down

0 comments on commit 9fe5547

Please sign in to comment.