@Override public void setProperties(Properties properties) { super.setProperties(properties); addGWTInterface = Boolean.valueOf(properties.getProperty("addGWTInterface")); // $NON-NLS-1$ suppressJavaInterface = Boolean.valueOf(properties.getProperty("suppressJavaInterface")); // $NON-NLS-1$ }
/* * (non-Javadoc) * * @see * org.mybatis.generator.api.PluginAdapter#setContext(org.mybatis.generator * .config.Context) */ @Override public void setContext(Context context) { CommentGeneratorConfiguration cgc = new CommentGeneratorConfiguration(); cgc.addProperty("suppressAllComments", "true"); context.setCommentGeneratorConfiguration(cgc); // GeneratedXmlFile super.setContext(context); }
@Override public void initialized(IntrospectedTable introspectedTable) { List<IntrospectedColumn> columns = introspectedTable.getAllColumns(); for (IntrospectedColumn introspectedColumn : columns) { String javaProperty = this.getJavaName( introspectedColumn.getActualColumnName(), introspectedColumn.getJavaProperty()); introspectedColumn.setJavaProperty(javaProperty); } super.initialized(introspectedTable); }