diff --git a/src/main/java/com/app/bookstore/repository/shopping/cart/ShoppingCartRepository.java b/src/main/java/com/app/bookstore/repository/shopping/cart/ShoppingCartRepository.java index a60a6ed..04325c8 100644 --- a/src/main/java/com/app/bookstore/repository/shopping/cart/ShoppingCartRepository.java +++ b/src/main/java/com/app/bookstore/repository/shopping/cart/ShoppingCartRepository.java @@ -1,12 +1,11 @@ package com.app.bookstore.repository.shopping.cart; import com.app.bookstore.model.ShoppingCart; +import java.util.Optional; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.stereotype.Repository; -import java.util.Optional; - @Repository public interface ShoppingCartRepository extends JpaRepository { @Query("SELECT sc FROM ShoppingCart sc JOIN FETCH sc.cartItems ci WHERE sc.user.id = :userId")