org.axonframework.serializer
Annotation Type Revision


@Retention(value=RUNTIME)
@Target(value=TYPE)
@Documented
@Inherited
public @interface Revision

Annotation that attaches revision information to a Serializable object. The revision identifiers is used by upcasters to decide whether they need to process a certain serialized event. Generally, the revision identifier needs to be modified (increased) each time the structure of an event has been changed in an incompatible manner.

Although revision identifiers are inherited, you are strictly advised to only annotate the actual implementation classes used. This will make it easier to keep the necessary upcasters up-to-date.

Since:
2.0
Author:
Allard Buijze

Required Element Summary
 String value
          The revision identifier for this object.
 

Element Detail

value

public abstract String value
The revision identifier for this object.



Copyright © 2010-2016. All Rights Reserved.