Skip to content

Commit

Permalink
[refactor] remove fetch join
Browse files Browse the repository at this point in the history
  • Loading branch information
PicturePark1101 committed Jul 11, 2024
1 parent 7ee6a4a commit 4200074
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ public interface FavoriteRepository extends JpaRepository<Favorite, Long> {
@Query("delete from Favorite f where f in :favorites")
void deleteAll(@Param("favorites") List<Favorite> favorites);

@Query("select f from Favorite f join fetch f.user where f.id in :favoriteId")
@Query("select f from Favorite f where f.id in :favoriteId")
List<Favorite> findByIds(@Param("favoriteId") List<Long> favoriteId);
}

0 comments on commit 4200074

Please sign in to comment.