Package org.mybatis.generator.api.dom.java

Examples of org.mybatis.generator.api.dom.java.TopLevelClass.addAnnotation()


    type = new FullyQualifiedJavaType(serviceImplFullName);
    TopLevelClass topLevelClass = new TopLevelClass(type);
    topLevelClass.setVisibility(JavaVisibility.PUBLIC);
    type = new FullyQualifiedJavaType(serviceInterfaceFullName);
    topLevelClass.addSuperInterface(type);
    topLevelClass.addAnnotation("@Service(\"" + recordLowCaseFullType + "Service\")");
    type = new FullyQualifiedJavaType("org.springframework.stereotype.Service");
    importedTypes.add(type);

    // add field, getter, setter for orderby clause
    // @Resource private UserMapper userMapper;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.