Package com.github.dactiv.orm.core.spring.data.jpa.specification

Examples of com.github.dactiv.orm.core.spring.data.jpa.specification.SpecificationEntity


   
   
    List<Predicate> list = new ArrayList<Predicate>();
   
    for (PropertyFilter filter : filters) {
      list.add(JpaRestrictionBuilder.getRestriction(filter,new SpecificationEntity(root, query, builder)));
    }
   
    return list.size() > 0 ? builder.and(list.toArray(new Predicate[list.size()])) : null;
   
  }
View Full Code Here


   * @see org.springframework.data.jpa.domain.Specification#toPredicate(javax.persistence.criteria.Root, javax.persistence.criteria.CriteriaQuery, javax.persistence.criteria.CriteriaBuilder)
   */
  public Predicate toPredicate(Root<T> root, CriteriaQuery<?> query,CriteriaBuilder builder) {
   
   
    Predicate predicate = builder.and(JpaRestrictionBuilder.getRestriction(propertyName, value, restrictionName, new SpecificationEntity(root, query, builder)));
   
   
    return predicate;
  }
View Full Code Here

TOP

Related Classes of com.github.dactiv.orm.core.spring.data.jpa.specification.SpecificationEntity

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.