Modeling example

If you want to know more about how to model your application using the Spring cartridge with AndroMDA, you have arrived at the right place: step-by-step we will work through an example showing the cartridge's features. Read on for more information.

The Spring framework envelopes a 3-tier J2EE application architecture, the AndroMDA Spring cartridge however focuses on the persistence and business tier only. The presentation tier can be handled in AndroMDA as well, but for that we recommend using the Bpm4Struts cartridge.

In this how-to we will cover the following topics:

You can download the UML model containing all models for all sections here.

In order to start the tutorial click here.


Here's already a brief summary of the information found in this how-to.

Feature Element How
Hibernate POJO class add the <<Entity>> stereotype
Stand-alone Spring POJO Service OR Spring POJO Service wrapped with an EJB Session Bean class add the <<Service>> stereotype
Value object class add the <<ValueObject>> stereotype, draw a dependency from an <<Entity>> to this class in order to have a transformation method generated in the entity's DAO
Enumeration class assign a class with the <<Enumeration>> stereotype as the type of an entity's attribute
Hibernate QL operation add an OCL body on an operation with the UML query flag set to true
Unique attribute class add the <<Unique>> stereotype to an attribute, the attribute's class must carry the <<Entity>> stereotype
Nullable parameter operation parameter only useful on operations modeled for <<Entity>> and <<Service>> classes