public static <T extends Enum<T>> EnumPath<T> enumPath(Class<? extends T> type, String variable) {
        return new EnumPath<T>(type, PathMetadataFactory.forVariable(variable));
    }
Create a new Path expression

@param type type of expression
@param variable variable name
@return path expression
querydsl-core/src/main/java/com/querydsl/core/types/dsl/Expressions.java