Annotation Interface SerVersion


@Target(TYPE) @Retention(RUNTIME) public @interface SerVersion
Optional annotation for serializable types, used to specify the version of the object. If an @Ser type does not have an @SerVersion annotation, it is assumed to be 0. When deserializing an object, the serialized version id can be retrieved via the use of a custom object loader.

When modifying the structure (fields or type hierarchy) of an object marked @Ser, the @SerVersion is no longer optional. It must be set to a value greater than the one previously sets.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    int
     
  • Element Details

    • value

      int value