摘要
为提高软件开发效率,提出模型驱动下的数据库自动生成方法。该方法以MetaEdit+作为元建模工具,由领域专家建立领域元模型和模型,通过生成器定义语言MERL,软件开发人员可以很方便地设计代码生成器,直接从领域专家所建立的图形领域模型生成Java程序代码,并运行已生成的程序代码进而生成数据库。通过一个实例详细介绍了数据库概念模型元模型设计、E-R模型设计并给出从E-R模型到Java代码的生成器设计。经测试,所生成的Java程序代码可以在Windows操作系统环境的Java平台上运行,并能正确生成Oracle 10g数据库实例。
In order to promote software's development efficiency,is proposes an approach of database automatic generation based on model driven.This approach takes MetaEdit+ as a meta-modeling tool.Domain meta-models and models are established by domain experts.By using generator definition language MERL,the software developers can design code generators very conveniently.From the graph domain models which are established by domain experts,code generators can generate Java codes directly and then the generated codes can produce database.It introduces in detail design of database conceptual meta-model,E-R model and generators for Java code through an instance.The test result indicates that the generated Java codes can run correctly on Java platforms in Windows operating system environment and then can produce a database instance in Oracle 10g.
出处
《计算机技术与发展》
2011年第8期173-176,180,共5页
Computer Technology and Development
基金
山西省省筹公派出国留学资金(晋留管办发2009-4号)