Search in sources :

Example 1 with QueryType

use of com.querydsl.core.annotations.QueryType in project querydsl by querydsl.

the class TypeElementHandler method getType.

private Type getType(VariableElement element) {
    Type rv = typeFactory.getType(element.asType(), true);
    if (element.getAnnotation(QueryType.class) != null) {
        QueryType qt = element.getAnnotation(QueryType.class);
        if (qt.value() != PropertyType.NONE) {
            TypeCategory typeCategory = TypeCategory.valueOf(qt.value().name());
            rv = rv.as(typeCategory);
        }
    }
    return rv;
}
Also used : QueryType(com.querydsl.core.annotations.QueryType) Type(com.mysema.codegen.model.Type) PropertyType(com.querydsl.core.annotations.PropertyType) EntityType(com.querydsl.codegen.EntityType) TypeCategory(com.mysema.codegen.model.TypeCategory) QueryType(com.querydsl.core.annotations.QueryType)

Aggregations

Type (com.mysema.codegen.model.Type)1 TypeCategory (com.mysema.codegen.model.TypeCategory)1 EntityType (com.querydsl.codegen.EntityType)1 PropertyType (com.querydsl.core.annotations.PropertyType)1 QueryType (com.querydsl.core.annotations.QueryType)1