Example usage for org.springframework.data.mapping PropertyPath next

List of usage examples for org.springframework.data.mapping PropertyPath next

Introduction

In this page you can find the example usage for org.springframework.data.mapping PropertyPath next.

Prototype

PropertyPath next

To view the source code for org.springframework.data.mapping PropertyPath next.

Click Source Link

Usage

From source file:org.springframework.data.mapping.PropertyPath.java

/**
 * Returns the leaf property of the {@link PropertyPath}.
 * //w w  w.j a v a  2 s .  com
 * @return will never be {@literal null}.
 */
public PropertyPath getLeafProperty() {

    PropertyPath result = this;

    while (result.hasNext()) {
        result = result.next();
    }

    return result;
}