Examples of PropertyPath


Examples of org.springframework.data.mapping.PropertyPath

     *
     * @return
     */
    public Predicate build() {

      PropertyPath property = part.getProperty();
      Expression<Object> path = toExpressionRecursively(root, property);

      switch (part.getType()) {
      case BETWEEN:
        ParameterMetadata<Comparable> first = provider.next(part);
View Full Code Here

Examples of org.springframework.data.mapping.PropertyPath

    CriteriaBuilder builder = em.getCriteriaBuilder();
    CriteriaQuery<User> query = builder.createQuery(User.class);
    Root<User> from = query.from(User.class);

    PropertyPath managerFirstname = PropertyPath.from("manager.firstname", User.class);
    PropertyPath managerLastname = PropertyPath.from("manager.lastname", User.class);

    QueryUtils.toExpressionRecursively(from, managerLastname);
    QueryUtils.toExpressionRecursively(from, managerFirstname);

    assertThat(from.getJoins(), hasSize(1));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.