(转)ibator改进,生成中文注释
转自:http://lj-zhu.iteye.com/blog/732325
?
?
修改ibator1.2.2(http://svn.apache.org/repos/asf/ibatis/java/ibator)
1) 修改org.apache.ibatis.ibator.api.Ibator类,
方法private void writeFile(File file, String content) throws IOException
修改编码如下:
?
?
?
?
?
??
? 4.3)ibator生成文件
?
????
?
????- /** ??????*?Method?from?the?old?version?of?the?interface. ??????*? ??????*?TODO?-?remove?in?release?1.2.3 ??????*? ??????*?@deprecated?as?of?version?1.2.2. ??????*?@see?DefaultCommentGenerator#addFieldComment(Field,?IntrospectedTable,?IntrospectedColumn) ??????*/??????public?void?addFieldComment(Field?field,?FullyQualifiedTable?table,?String?columnName)?{ ??。。。。。 ??}??