private static void addJdbcFields(Document doc,Node parent,String name,Collection<PojoField> fields){
  if (!fields.isEmpty()) {
    Element prop=addProperty(doc,parent,name,null);
    Element list=addElement(doc,prop,"list");
    for (    PojoField field : fields) {
      Element item=addBean(doc,list,JdbcTypeField.class);
      Element dbType=addProperty(doc,item,"databaseFieldType",null);
      addElement(doc,dbType,"util:constant","static-field","java.sql.Types." + field.dbTypeName());
      addProperty(doc,item,"databaseFieldName",field.dbName());
      addProperty(doc,item,"javaFieldType",field.javaTypeName());
      addProperty(doc,item,"javaFieldName",field.javaName());
    }
  }
}

private static void addJdbcFields ( Document doc , Node parent , String name , Collection < PojoField > fields ) { if ( ! fields . isEmpty ( ) ) { Element prop = addProperty ( doc , parent , name , null ) ; Element list = addElement ( doc , prop , "list" ) ; for ( PojoField field : fields ) { Element item = addBean ( doc , list , JdbcTypeField . class ) ; Element dbType = addProperty ( doc , item , "databaseFieldType" , null ) ; addElement ( doc , dbType , "util:constant" , "static-field" , "java.sql.Types." + field . dbTypeName ( ) ) ; addProperty ( doc , item , "databaseFieldName" , field . dbName ( ) ) ; addProperty ( doc , item , "javaFieldType" , field . javaTypeName ( ) ) ; addProperty ( doc , item , "javaFieldName" , field . javaName ( ) ) ; } } }
add type descriptors to xml document .
