We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1c38fd commit 48b6161Copy full SHA for 48b6161
1 file changed
apps/commerce-api/src/main/java/com/loopers/infrastructure/order/OrderJpaRepository.java
@@ -10,7 +10,7 @@
10
11
public interface OrderJpaRepository extends JpaRepository<Order, Long> {
12
13
- @Query("SELECT o FROM Order o " +
+ @Query("SELECT DISTINCT o FROM Order o " +
14
"JOIN FETCH o.orderItems oi " +
15
"JOIN FETCH oi.product p " +
16
"JOIN FETCH p.brand " +
0 commit comments