Java also has a similar Codesmith code generation tool, but open source or a lot of free, the following brief introduction:
1.spring Roo
One of the official spring projects.
2.m2spring
It looks like a commercial.
3.springside
Domestic, author Csdn Jiangnan White
4.rapid-framework
It's also homemade.
5. Seam Gen
JBoss Seam Code Auto Generation tool
6.appfuse
Veteran tools
7.middlegen
Another veteran tool.
8. The tool I developed myself
The previous tools are based on the database, take ResultSetMetaData to generate Java classes, DAO code, Services layer, action, and so on, JDBC metadata restrictions, my idea is to read directly powerdesigner PDFM file , the actual is the XML file, parsing can be the primary key field, foreign key reference and other information, after the data dictionary and other references are automatically generated, ibatis,hibernate,jpa,struts2 action,jsf controller,xml configuration parameters, JSP page, JS validation script.