org.granite.tide.spring.data
Class FilterMapSpecification<T>
java.lang.Object
org.granite.tide.spring.data.FilterMapSpecification<T>
- All Implemented Interfaces:
- org.springframework.data.jpa.domain.Specification<T>
public class FilterMapSpecification<T>
- extends Object
- implements org.springframework.data.jpa.domain.Specification<T>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
byMap
public static <T> FilterMapSpecification<T> byMap(Map<String,Object> filter)
toPredicate
public Predicate toPredicate(Root<T> root,
CriteriaQuery<?> query,
CriteriaBuilder builder)
- Specified by:
toPredicate in interface org.springframework.data.jpa.domain.Specification<T>