1. Use powerdesigner to design the Data Structure
2. Use JavaProgramParse the PDM file of powerdesigner and convert the data structure into an xml configuration file. The xml configuration file can modify the verification method for adding fields.
3. Use freemarker to compile Java, JSP, and configuration file templates
4. Generate JavaCodeAnd put it in a temporary file;
5. manually modify the generated Java file and add special business logic code;
Advantages:
Spring2.0.8 and struts2.0.14 are used;
Code Generation for a single file and parent-child table code generation
The persistent layer uses springjdbc, which is easy to get started and easy to debug and modify;
Disadvantages:
The multi-to-many mode is not yet supported;
Dictionary code needs to be manually loaded;
The paging code needs to modify the paging SQL statement as the database changes;