diff --git a/src/main/java/com/makive/moumi/repository/specification/RequestSpecifications.java b/src/main/java/com/makive/moumi/repository/specification/RequestSpecifications.java index 295f297..e18efdc 100644 --- a/src/main/java/com/makive/moumi/repository/specification/RequestSpecifications.java +++ b/src/main/java/com/makive/moumi/repository/specification/RequestSpecifications.java @@ -30,7 +30,7 @@ public static Specification findAllByClientIdAndCategory(Long clientId, } if (hasReview) { - predicates.add(criteriaBuilder.isNotEmpty(root.get("review"))); + predicates.add(criteriaBuilder.isNotNull(root.get("review"))); } else { Subquery subquery = query.subquery(Review.class); Root subqueryReview = subquery.from(Review.class);