Annotation Type DiffIgnoreProperties


  • @Target(TYPE)
    @Retention(RUNTIME)
    public @interface DiffIgnoreProperties
    Use the DiffIgnoreProperties annotation to mark a list properties (fields or methods) of a class as ignored by Javers.

    All properties listed in the annotation are ignored by the Javers.
    Using this annotation is equiv to putting DiffIgnore on each of the listed property.

    Usage with MappingStyle.FIELD:
     @DiffIgnoreProperties("field1", "field2")
     public class MyClass {
         String field1;
         String field2;
         String field3;
     }
     
    Usage with MappingStyle.BEAN:
     @DiffIgnoreProperties("getName1", "getName2")
     public class MyClass {
         String getName1() { ... }
         String getName2() { ... }
         String getName3() { ... }
     }
     
    See Also:
    DiffIgnore
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String[] value  
    • Element Detail

      • value

        java.lang.String[] value
        Default:
        {}