Class InTheFuture<T,TimeType extends Comparable<TimeType>>
java.lang.Object
net.kaczmarzyk.spring.data.jpa.domain.PathSpecification<T>
net.kaczmarzyk.spring.data.jpa.domain.InTheFuture<T,TimeType>
- All Implemented Interfaces:
Serializable,ZeroArgSpecification,org.springframework.data.jpa.domain.Specification<T>
public class InTheFuture<T,TimeType extends Comparable<TimeType>>
extends PathSpecification<T>
implements ZeroArgSpecification
Filters with > where-clause (e.g. where dateOfBirth > localtimestamp()).
Given date type value in path is compared to current timestamp of the database.
Supports date type fields.
- See Also:
-
Field Summary
Fields inherited from class net.kaczmarzyk.spring.data.jpa.domain.PathSpecification
path -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.persistence.criteria.PredicatetoPredicate(jakarta.persistence.criteria.Root<T> root, jakarta.persistence.criteria.CriteriaQuery<?> query, jakarta.persistence.criteria.CriteriaBuilder cb) Methods inherited from class net.kaczmarzyk.spring.data.jpa.domain.PathSpecification
equals, hashCode, pathMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.jpa.domain.Specification
and, or
-
Constructor Details
-
InTheFuture
-
-
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>
-