public static <T, V extends Comparable<V>> PathComparator<T, V> pathComparator(Path<V> comparingPath) {
        return new PathComparator<T,V>(comparingPath);
    }
Compares two beans based on the values at a specific path.

@author Jeroen van Schagen
@author tiwe

@param <T> type of the path root
@param <V> type of value being matched
querydsl-collections/src/main/java/com/querydsl/collections/PathComparator.java