|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
public @interface TargetAggregateVersionField or method level annotation that marks a field or method providing the expected version of the aggregate that a command targets.
If placed on a method, that method must contain no parameters. The return value will be converted to a Long. This is done either by converting it, if it is a numeric value, or by parsing the result of the value'stoString()
result.
If place on a field, the value is converted to a Long in an identical fashion.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||