Annotation Interface TargetAggregateIdentifier
@Target({METHOD,FIELD,ANNOTATION_TYPE})
@Retention(RUNTIME)
public @interface TargetAggregateIdentifier
Field or method level annotation that marks a field or method providing the identifier of the aggregate that a
command targets.
If placed on a method, that method must contain no parameters. The return value will be used as the
Aggregate Identifier.
If placed on a field, the field's value will be converted into an AggregateIdentifier instance identical to how a
method's return value is converted.
- Since:
- 1.2
- Author:
- Allard Buijze