Search in sources :

Example 1 with ConstructorArgs

use of org.apache.ibatis.annotations.ConstructorArgs in project mybatis-3 by mybatis.

the class MapperAnnotationBuilder method parseResultMap.

private String parseResultMap(Method method) {
    Class<?> returnType = getReturnType(method);
    ConstructorArgs args = method.getAnnotation(ConstructorArgs.class);
    Results results = method.getAnnotation(Results.class);
    TypeDiscriminator typeDiscriminator = method.getAnnotation(TypeDiscriminator.class);
    String resultMapId = generateResultMapName(method);
    applyResultMap(resultMapId, returnType, argsIf(args), resultsIf(results), typeDiscriminator);
    return resultMapId;
}
Also used : TypeDiscriminator(org.apache.ibatis.annotations.TypeDiscriminator) ConstructorArgs(org.apache.ibatis.annotations.ConstructorArgs) Results(org.apache.ibatis.annotations.Results)

Aggregations

ConstructorArgs (org.apache.ibatis.annotations.ConstructorArgs)1 Results (org.apache.ibatis.annotations.Results)1 TypeDiscriminator (org.apache.ibatis.annotations.TypeDiscriminator)1