From 15647e46fb0a3f1cc7bb89df7625d3079813ca5d Mon Sep 17 00:00:00 2001 From: Valerii Fedorovych Date: Wed, 3 Jan 2024 12:59:34 +0200 Subject: [PATCH] updated OrderItemRepository --- .../bookstore/repository/order/item/OrderItemRepository.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/app/bookstore/repository/order/item/OrderItemRepository.java b/src/main/java/com/app/bookstore/repository/order/item/OrderItemRepository.java index a63091f..c4714f7 100644 --- a/src/main/java/com/app/bookstore/repository/order/item/OrderItemRepository.java +++ b/src/main/java/com/app/bookstore/repository/order/item/OrderItemRepository.java @@ -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 { @Query("SELECT oi FROM OrderItem oi " + "JOIN FETCH oi.order "