Class NotIn<T>
java.lang.Object
net.kaczmarzyk.spring.data.jpa.domain.PathSpecification<T>
net.kaczmarzyk.spring.data.jpa.domain.NotIn<T>
- All Implemented Interfaces:
Serializable,org.springframework.data.jpa.domain.Specification<T>
Negation of In.
Filters with "not in" where-clause (e.g. where firstName not 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.
- Author:
- Tomasz Kaczmarzyk
- See Also:
-
Field Summary
Fields inherited from class net.kaczmarzyk.spring.data.jpa.domain.PathSpecification
path -
Constructor Summary
ConstructorsConstructorDescriptionNotIn(QueryContext queryContext, String path, String[] httpParamValues, Converter converter) -
Method Summary
Methods inherited from class net.kaczmarzyk.spring.data.jpa.domain.PathSpecification
pathMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.data.jpa.domain.Specification
and, or
-
Constructor Details
-
NotIn
-
-
Method Details
-
toPredicate
public jakarta.persistence.criteria.Predicate toPredicate(jakarta.persistence.criteria.Root<T> root, jakarta.persistence.criteria.CriteriaQuery<?> query, jakarta.persistence.criteria.CriteriaBuilder cb) -
hashCode
public int hashCode()- Overrides:
hashCodein classPathSpecification<T>
-
equals
- Overrides:
equalsin classPathSpecification<T>
-
toString
-