Skip to content

Commit 48b6161

Browse files
committed
fix: distinct 조건 추가
1 parent a1c38fd commit 48b6161

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/commerce-api/src/main/java/com/loopers/infrastructure/order/OrderJpaRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
public interface OrderJpaRepository extends JpaRepository<Order, Long> {
1212

13-
@Query("SELECT o FROM Order o " +
13+
@Query("SELECT DISTINCT o FROM Order o " +
1414
"JOIN FETCH o.orderItems oi " +
1515
"JOIN FETCH oi.product p " +
1616
"JOIN FETCH p.brand " +

0 commit comments

Comments
 (0)