@Target(value={FIELD,METHOD,ANNOTATION_TYPE}) @Retention(value=RUNTIME) @EntityId public @interface AggregateIdentifier
Modifier and Type | Optional Element and Description |
---|---|
String |
routingKey
Deprecated.
this field is no longer used to route commands to an aggregate. The aggregate to route a command to
will be resolved with the
TargetAggregateIdentifier annotated field in the CommandMessage 's payload itself. |
@Deprecated public abstract String routingKey
TargetAggregateIdentifier
annotated field in the CommandMessage
's payload itself.
Optional. If left empty this defaults to the member name. If the member was named in a "getter" style, the "get"
will be removed.
Setting the routingKey
is especially useful for annotated Method
s, which
typically have a different naming scheme than a field in a command/event.
Copyright © 2010–2024. All rights reserved.