@KwrkImmutable @CompileStatic class CustomerId extends Object implements PostMapConstructorCheckable
Encapsulates an identifier of a Customer aggregate from external bounded context.
Identifier does not have any business meaning. It is used just for referencing. Encapsulated identifier must exactly match whatever is used in external bounded context for Customer identifying.Type | Name and description |
---|---|
String |
identifier |
Constructor and description |
---|
CustomerId() |
Type Params | Return Type | Name and description |
---|---|---|
|
static CustomerId |
make(String uuidString) Factory method for creating CustomerId instance. |
|
void |
postMapConstructorCheck(Map<String, ?> constructorArguments) |
Factory method for creating CustomerId
instance.
uuidString
- String in random UUID format (UUID version 4, variant 2).Groovy Documentation