protected <A extends Enum<A>> EnumPath<A> createEnum(String property, Class<A> type) {
        return add(new EnumPath<A>(type, forProperty(property)));
    }
Create a new Enum path

@param <A>
@param property property name
@param type property type
@return property path
querydsl-core/src/main/java/com/querydsl/core/types/dsl/BeanPath.java