Annotation Interface AggregateVersion


@Target({FIELD,METHOD,ANNOTATION_TYPE}) @Retention(RUNTIME) public @interface AggregateVersion
Field or Method annotation that indicates the member contains the value that represents the version of the Aggregate, used for optimistic locking, as well as state validation for commands.
Since:
2.0
Author:
Allard Buijze