Home > Jee Code Generation

Model Driven Development with AndroMDA

It is possible to use:
  1. EclipseUML for Java and Java EE modelers (June 18th, 2009 and after)
  2. EclipseUML for Java EE modelers (previous build)

1.EclipseUML for Java and Java EE modelers (after june 18th, 2009)

You can use EclipseUML and generate a compatible AndroMDA 3.3 model.
Click on the EclipseUML model in the Package Explorer Project name.uml file  > Transform to AndroMDA

The AndroMDA compatible file has been generated in the Package Explorer.

2. EclipseUML for Java EE modelers (previous builds)

The Jee code generator is not using the traditional Omondo EMF code generator. The live code and model synchronization is therefore not possible.
It is only possible to generate your class diagram Jee code by using the AndroMDA code generator.

In order to use the AndroMDA code generator, you need to:

  1. Create a new and empty AndroMDA project
  2. Select the project UML model and launch the Jee templates engine to fullfile the previously created AndroMDA project

1.    Create a new AndroMDA Project

Click in the package explorer to open the contextual menu, then select NEW > Other…


Select AndroMDA > JEE Project and click on the next button

Enter the project name, the Root Package and click on the next button

Select in the new AndroMDA Project wizard:

  •       The database
  •       The model Layer
  •       The type of Application


Select the components of the Presentation Tier

Select the workflow and web Services options, then click on the finish button

The templates engine is building the new AndroMDA empty project

A new AndroMDA project has been created in the package explorer.
It is composed by 7 projects having dependencies between them.

2. Launch the templates engines


Select your UML Project, and click to open the contextual menu JEE UML Code Generation > Build All Components.