Creating the Domain Model

The domain model is defined using a UML Class Diagram exported as XMI 2.

A modeling tool such as Poseidon for UML will work.

The domain model must be created in a package named 'model'.

Attributes are used to specify the entity state fields to generate.

There is no need to specify an identifier. However, if an attribute has 'Id' within its name, it will be used as the identifier.

Every entity requires a name field. Unless a 'name' stereotype is assigned to an attribute, the generator will look for the first attribute with 'Name', 'Desc', or 'Description' in its name.

Avoid using SQL key words as class names.