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;
}
Aggregations