| The code generator is a tool used to generate software code, and means forauxiliary development. It can improve development efficiency, so more and moredevelopers love it. But now the code generators on the market have many problems.The mainstream code generators are hard to generate the codes of complexrelationship,project documents, and cannot synchronize changes for codes ordocuments. To solve these problems, this paper focuses on the combination of thecode generator and software reuse based on the code generator technology, andmainly carried out the following research work:1.This paper puts forward the theory of relational model, and considers thedevelopment efficiency from the whole.The software not only need to handle therelationship between business logic, also need to deal with the relationship betweenthe business logic and project management, design development and deploymentoperation. The theory of relational model combines the technology of software reuseand code generation technology, and makes to these relations further abstraction.Letthe software reuse technology abstract suitable business, and the generation tool toanother. The combination of the two as the combination of X and Y axis, the reusescope from the point of ascension to the plane。2. According to the theory of relational model, then this paper design andconstruct a new generation tool-the Mgicode code generator. It realized the relativetemplateã€the relative model and the generation engine. The Mgicode code generatorcan realize complex code generation, document generation and project assistant threefunctions, and can generate complex business system simply, solve the problem of thecode synchronization. |