Skip to content

Commit 711ec27

Browse files
committed
Upgrade spring data commons and add isEmpty and isNotEmpty.
1 parent 96cbb7d commit 711ec27

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/java/org/springframework/data/ebean/repository/query/EbeanQueryCreator.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,10 @@ public Expression build() {
199199
ParameterMetadataProvider.ParameterMetadata<Object> pmNot = provider.next(part);
200200
return pmNot.isIsNullParameter() ? Expr.isNull(property.toDotPath())
201201
: Expr.ne(property.toDotPath(), pmNot.getParameterValue());
202-
// case IS_EMPTY:
203-
// return root.isEmpty(part.getProperty().getSegment());
204-
// case IS_NOT_EMPTY:
205-
// return root.isEmpty(part.getProperty().getSegment());
202+
case IS_EMPTY:
203+
return Expr.isEmpty(property.toDotPath());
204+
case IS_NOT_EMPTY:
205+
return Expr.isNotEmpty(property.toDotPath());
206206
default:
207207
throw new IllegalArgumentException("Unsupported keyword " + type);
208208
}

0 commit comments

Comments
 (0)