public class LessThan<T> extends ComparableSpecification<T>
Filters with less than where-clause (e.g. where firstName < "Homer").
Supports multiple field types: strings, numbers, booleans, enums, dates.
Field types must be Comparable (e.g, implement the Comparable interface); this is
a JPA constraint.
NOTE: comparisons are dependent on the underlying database.
Comparisons of floats and doubles (especially floats) may be incorrect due to precision loss.
Comparisons of booleans may be dependent on the underlying database representation.
Comparisons of enums will be of their ordinal or string representations, depending on what you specified to JPA,
e.g., @Enumerated(EnumType.STRING), @Enumerated(EnumType.ORDINAL) or the default (@Enumerated(EnumType.ORDINAL))
path| Constructor and Description |
|---|
LessThan(String path,
String[] httpParamValues,
Converter converter) |
| Modifier and Type | Method and Description |
|---|---|
protected <Y extends Comparable<? super Y>> |
makePredicate(javax.persistence.criteria.CriteriaBuilder cb,
javax.persistence.criteria.Expression<? extends Y> x,
Y y) |
toPredicateequals, hashCode, pathprotected <Y extends Comparable<? super Y>> javax.persistence.criteria.Predicate makePredicate(javax.persistence.criteria.CriteriaBuilder cb, javax.persistence.criteria.Expression<? extends Y> x, Y y)
makePredicate in class ComparableSpecification<T>Copyright © 2014–2017. All rights reserved.