VIATRA2/UML2EJB

From Eclipsepedia

Jump to: navigation, search

Description

The aim of this model transformation is to generate a skeleton of Enterprise Java Beans (EJB3) from UML class diagrams. The related metamodels and transformations will be developed in a step-by-step manner to present some VIATRA design patterns and best practices. As a result, this transformation serves as a complex tutorial.

This code generation task will be carried out by two separate transformations:

  • UML-to-EJB: A first transformation will derive an EJB3 model from UML class diagrams
  • EJB-to-Java: A second transformation will generate Java code with EJB3 annotations from the EJB3 model

Separating this code generation task into two steps is already the first design pattern, which provides

  • more freedom in designing the more complex UML2EJB step (as we do not need to deal with Java serialization at the same time)
  • a straightforward model transformation for the actual code generation.

Details