UML to JEE : Modeling

From AcceleoWiki

Jump to: navigation, search

UML to JEE : Modeling - Profiles

JEE Module's generators work with some stereotypes to specify the kind of some models' elements. This stereotypes are defined in two profiles :

  • Acceleo::UI
  • Acceleo::Business

As defined by names, the first help to specify information for the User Interface and the second business information.

UI Profile - Acceleo::UI

Image:UML_to_JEE_Acceleo--UI_Profile.png

UI Profile defines three kinds of Stereotypes.

Sample of UML Model using Acceleo::UI profile
Sample of UML Model using Acceleo::UI profile
  • Screen : A Screen of a graphical interface is defined by a UML Class with the «Screen» stereotype
  • Config : The title of a Screen can be defined with an UML Attribute with the «Title» stereotype
  • Widgets : The widget kind (Text, Combo, ...) of a graphical component is defined with the corresponding stereotype («Text», «Combo» ...)


Since the version of July 08, a pathmap exists to reference this profile. If you want to use this profile in your uml models, you just have to reference the pathmap : pathmap://ACCELEO_PROFILES/Acceleo.UI.profile.uml (For more information, see the Using the UML profiles page). Of course, you have to be in Eclipse for this to work!

Business Profile - Acceleo::Business

Image:UML_to_JEE_Acceleo--Business_Profile.png

UML model using the Acceleo::Business profile
UML model using the Acceleo::Business profile

The business profile allows to use more stereotypes. Here is the differents stereotypes currently usable :

  • Service : a business service is an UML Class with the «Service» stereotype
  • Dao : a Dao is an UML Class with the «Dao» stereotype. This kind of classes can have finders which are UML Operation with the «find» stereotype
  • Entity : a business entity is an UML Class with the «Entity» stereotype. For relational generation purpose, it is possible to put the «PrimaryKey» stereotype on UML Attributes of an Entity to specify the features composing the primary key of the entity
  • Transverse : some transverse concepts can be also defined with a stereotype. A DTO can be specified with a UML Class stereotyped «Dto». Exception can alseo be modelised with UML Classes stereotyped «Exception» or «BusinessException»
  • Config : the last purpose of this profile is configuration. To complete JBE.


As the UI profile, since the version of July 08, a pathmap exists to reference the business profile. If you want to use this profile in your uml models, you just have to reference the pathmap : pathmap://ACCELEO_PROFILES/Acceleo.Business.profile.uml (For more information, see the Using the UML profiles page).

Personal tools