@SuppressWarnings("unchecked")
    @Override
    public <T> Path<T> createEntityPath(Class<T> type, PathMetadata metadata) {
        if (Comparable.class.isAssignableFrom(type)) {
            return Expressions.comparableEntityPath((Class) type, metadata);
        } else {
            return new EntityPathBase<T>(type, metadata);
        }
    }
{@code DefaultPathFactory} is the default implementation of the {@link PathFactory} interface

@author tiwe
querydsl-core/src/main/java/com/querydsl/core/alias/DefaultPathFactory.java