Commit 7d17bdbe authored by Matija Obreza's avatar Matija Obreza

NumberFilter: support path expression filtering

parent bb7ac98a
......@@ -19,7 +19,7 @@ import java.util.HashSet;
import java.util.Set;
import com.querydsl.core.BooleanBuilder;
import com.querydsl.core.types.dsl.NumberPath;
import com.querydsl.core.types.dsl.NumberExpression;
/**
* Utility filtering for numeric types. Matches all constraints.
......@@ -74,7 +74,7 @@ public class NumberFilter<T extends Number & Comparable<?>> {
* @param val the val
* @return the boolean builder
*/
public BooleanBuilder buildQuery(final NumberPath<T> val) {
public BooleanBuilder buildQuery(final NumberExpression<T> val) {
final BooleanBuilder and = new BooleanBuilder();
if (eq != null && !eq.isEmpty()) {
and.and(val.isNotNull());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment