«User Type»

Stereotype «UserType» is used to model custom types that have a special mapping to database. They are used to simplify modelling and implementation and also lead to more meaningful UML models as they models better represent the business perspective.

Example:

  • Instead of modelling a start and end date in several classes of the model it is also possible to work with a user type Period (which has a start and end date). This type can be used all over the model. As it is an user type it will be mapped to the database everywhere the same.

Stereotype

UserType

Applicable Elements

Class , Enumeration

Tagged Values

Name

Type

Description

typeClass

String

Fully qualified name of the class that will be used by JPA to map the type to the database.

 

 

For further details please refer to