Ejemplo n.º 1
0
 @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$
 }
Ejemplo n.º 2
0
 /*
  * (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);
 }
Ejemplo n.º 3
0
 @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);
 }