摘要
提出了一种简单易行的基于数据表元数据的代码自动生成方法,可以在MIS系统开发之初,自动生成所有数据库实体对象的增、删、改、查功能的实现代码,给用户构造一个基于SSH框架的可运行原型.基于代码生成系统,设计人员可多次进行数据库的迭代设计,开发出符合用户需要的MIS系统.代码生成模板可以根据项目需要进行定制,生成的代码可作为MIS系统最终实现的基础,节约开发成本,提高代码质量.
A simple automatic code generation method which is based on the metadata of data table is presented. In the beginning of the MIS system development, it can be used to automatically generate all database entity objects'create, delete, update, query function implementation codes, and to construct a runnable prototype based on SSH framework. Based on the code generator, the designer can do iterative design of the database. The MIS system is constructed to meet the needs of the users. Code generation templates can be customized to meet project's needs; the generated code can be used as the basis of the MIS system to save development costs and improve the quality of the code.
出处
《南京师范大学学报(工程技术版)》
CAS
2012年第3期49-53,59,共6页
Journal of Nanjing Normal University(Engineering and Technology Edition)