public class In<T> extends PathSpecification<T>
Filters with "in" where-clause (e.g. where firstName in ("Homer", "Marge")).
Values to match against should be provided as multiple values of a single HTTP parameter, eg.:
GET http://myhost/customers?firstName=Homer&firstName=Marge.
Supports multiple field types: strings, numbers, booleans, enums, dates.
path| Constructor and Description |
|---|
In(String path,
String[] httpParamValues,
Converter converter) |
| Modifier and Type | Method and Description |
|---|---|
javax.persistence.criteria.Predicate |
toPredicate(javax.persistence.criteria.Root<T> root,
javax.persistence.criteria.CriteriaQuery<?> query,
javax.persistence.criteria.CriteriaBuilder cb) |
equals, hashCode, pathpublic javax.persistence.criteria.Predicate toPredicate(javax.persistence.criteria.Root<T> root, javax.persistence.criteria.CriteriaQuery<?> query, javax.persistence.criteria.CriteriaBuilder cb)
Copyright © 2014–2017. All rights reserved.