Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
enilu committed Aug 22, 2019
1 parent fee65f8 commit eb33ba2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import org.springframework.data.jpa.domain.Specification;

import javax.persistence.criteria.*;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

Expand Down Expand Up @@ -52,7 +53,7 @@ public Predicate toPredicate(Root<T> root, CriteriaQuery<?> query, CriteriaBuild
predicates.add(builder.lessThanOrEqualTo(expression, (Comparable) filter.value));
break;
case IN:
predicates.add(expression.in(filter.value));
predicates.add(expression.in((ArrayList)filter.value));
break;
case ISNULL:
predicates.add(expression.isNull());
Expand Down

0 comments on commit eb33ba2

Please sign in to comment.