@ Override public void addModelClassComment ( TopLevelClass topLevelClass , IntrospectedTable introspectedTable ) { Map < String , Object > map = new HashMap <> ( ) ; map . put ( "mgb" , MergeConstants . NEW_ELEMENT_TAG ) ; map . put ( "topLevelClass" , topLevelClass ) ; map . put ( "introspectedTable" , introspectedTable ) ; // 添加评论 addJavaElementComment ( topLevelClass , map , EnumNode . ADD_MODEL_CLASS_COMMENT ) ; }
Adds a comment for a model class . The Java code merger should be notified not to delete the entire class in case any manual changes have been made . So this method will always use the do not delete annotation .