Skip to content

Commit

Permalink
fix : 레시피 테이블의 이름은 recipes이다.
Browse files Browse the repository at this point in the history
  • Loading branch information
Due-IT committed Oct 2, 2024
1 parent 6fb7da8 commit e8715d4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@

@Repository
public interface RecipeRepository extends JpaRepository<Recipe, Long> {
@Query(value = "SELECT * FROM recipe ORDER BY RAND() LIMIT :size", nativeQuery = true)
@Query(value = "SELECT * FROM recipes ORDER BY RAND() LIMIT :size", nativeQuery = true)
List<Recipe> findRecipesByRandom(@Param("size") int size);
}

0 comments on commit e8715d4

Please sign in to comment.