@Override
    public final boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (o instanceof Path<?>) {
            return ((Path<?>) o).getMetadata().equals(metadata);
        } else {
            return false;
        }
    }
{@code PathImpl} defines a default implementation of the {@link Path} interface

@author tiwe

@param <T>
querydsl-core/src/main/java/com/querydsl/core/types/PathImpl.java