Class Disjunction<T>
java.lang.Object
net.kaczmarzyk.spring.data.jpa.domain.Disjunction<T>
- All Implemented Interfaces:
Serializable,org.springframework.data.jpa.domain.Specification<T>
public class Disjunction<T>
extends Object
implements org.springframework.data.jpa.domain.Specification<T>
Helper for easier joining lists of specs with
OR operator- Author:
- Tomasz Kaczmarzyk
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDisjunction(Collection<org.springframework.data.jpa.domain.Specification<T>> innerSpecs) Disjunction(org.springframework.data.jpa.domain.Specification<T>... specs) -
Method Summary
Methods 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
-
Disjunction
-
Disjunction
-
-
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) - Specified by:
toPredicatein interfaceorg.springframework.data.jpa.domain.Specification<T>
-
hashCode
public int hashCode() -
equals
-
toString
-