Skip to content

Commit

Permalink
updated OrderItemRepository
Browse files Browse the repository at this point in the history
  • Loading branch information
fedorovychh committed Jan 3, 2024
1 parent dfc80d9 commit 15647e4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface OrderItemRepository extends JpaRepository<OrderItem, Long> {
@Query("SELECT oi FROM OrderItem oi "
+ "JOIN FETCH oi.order "
Expand Down

0 comments on commit 15647e4

Please sign in to comment.