UML Modeling Guide

Stereotype «Domain»

Stereotype «Domain»

This stereotype is used to mark a package as a domain.

In Domain-Driven Design (DDD), services, business logic, master data, transactional data, and other related elements are grouped into domains. Components within a domain usually have strong cohesion, while interactions with other domains are loosely coupled.

Each domain has a clear set of capabilities and responsibilities.


Stereotype «Domain»  
Applicable Elements Package  
Tagged Values    
Name Type Description
domainName String (Display) name of the domain. If the tagged value is not explicitly set then the package name will be used (with first upper case letter for better human readability).
domainNameJava String Name o the domain adjusted to meet requirements that it can be used as Java class name or part of it.

If the tagged value is not set then domainName will be used (adjusted to match Java Identifier rules).
groupId String Optional tagged value can be used to define a Maven group ID for a domain. This property is connected with features for Maven Project generation from UML model.

If no group ID is explicitly defined then the full package path will be used.
scmBasePath String SCM base path for all Maven projects of the domain. This base base can be further adjusted in the Maven project configuration in the UML model and in the Maven Plugin settings.
issueTrackingURL String HTTP base path of the issue tracking system that is used for this domain. If you want to use the same issue tracking system for several domains then it also is possible to provide a default issues tracking base path that is used for all domains that do not explicitly define one.
issueDisplayNamePrefix String Optional name prefix for an issue. This prefix will only be used as display info for the ID of an issue.
domainType DomainType According to DDD there are different types of domains. This tagged value can be used to define the type of a domain.

The following types are supported:

- BUSINESS_DOMAIN

- UTILITY_DOMAIN

- SHARED_KERNEL
domainVisibility DomainVisibility Visibility of the domain.


Generated by JEAF Generator