| Recently the need of data administration system grows fastly in every industry. A lot of data administration systems are developed and applied in actual work. With the increasing number and enlarging scale of these kind systems, the logical entities become complex, moreover, the quantity of codes is very large. We have to spend much more power and time to implement it. Therefore, developing a data-access code generator is a very important work to reply the growing demand, which save the labour and enhance the system development efficiency.Using the previous code generators and researching in code generating theory, many problems was discovered in existed code generator, such as automated generating, integrity of generated system and code regeneration. First of all, the generated target system can't be generated totally automated. Secondly, some basical function isn't in the generated system because of the defect of the data model. And, thirdly, the code generation is implemented when the target system are just built initially. The regeneration is not supported.In this essay, with MDA and EMF, I analyse the code generating technology and propose the demand of data-access code generator. Then, with the previous data model, I propose the improved data model and solve the regeneration with improving target system architecture. Moverover, with the JavaEE technology, I design the system and implement it finally. At last, the code generator will be used and checked with a project. |