问题描述
需要一个想法来开发非常简单的应用程序来演示 MDA 的概念.
Need a idea for developing very simple application demonstrating concepts of MDA.
推荐答案
好吧,很难在 MDA 世界中找到类似于 hello world 的东西,因为 MDA 旨在解决更大的问题.我认为最好的入门方法是通过在元模型中思考"
Alright, it is hard to find something analogous to a hello world in MDA world as MDA is geared on solving a bigger problem. The best way in my opinion to get started is to approach the below problem by "thinking in meta-model"
在任何现实世界的应用程序中,您都需要某些工件来持久化任何业务实体.选择 2 个这样的简单实体,如 Customer 和 Orders,并在任何多层应用程序的所有层(如 ui、持久性等)中生成所有相应的工件.以下是帮助您入门的工件
In any real world application, there are certain artifacts that you require for any business entity to be persisted. Pick 2 such simple entities like Customer and Orders and generate all the corresponding artifacts across all the layers of any multi-tiered application (like ui, persistence etc). Below are the artifacts to get you started
- UI(jsf 表单,托管 bean,faces-conig.xml) 供用户使用为两个实体输入数据
- 提供以后的工件,例如交易分界码等
- 持久层工件,如(DAO/Repository, JPA/Hibernate映射文件)
现在在这个过程中,你还将发现还有更多的东西需要建模,比如faces-config、jpa/hibernate config等.
Now in the process you will also identify that there are more things to model like faces-config, jpa/hibernate config etc..
EMF 是更流行的元建模工具包,oAW 是您的生成/转换引擎.本教程可以帮助您入门.
EMF is the more prevalent toolkit for meta-modling and oAW is your generation/transformation engine. This tutorial can get you started.
Spring Roo 和 OpenXava 在我看来是两个众所周知的支持 MDA 的框架
Spring Roo and OpenXava are in my opinion two well know frameworks that supports MDA
准备好在元模型、元元模型、模型实例等 MDA 术语中放松自己......
这篇关于MDA : 模型驱动架构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!