Annotation Type IgnoreDeclaredProperties


  • @Target(TYPE)
    @Retention(RUNTIME)
    public @interface IgnoreDeclaredProperties
    Use IgnoreDeclaredProperties annotation to mark all properties declared in a given class as ignored by JaVers.

    JaVers still tracks instances of a given class and tracks changes done on properties of its superclass (by contrast, if a class is annotated with DiffIgnore, JaVers completely ignores instances of that class).

    For example, when you want to ignore all properties declared in a subclass B but still track changes in properties declared in a superclass A:
     class A {
         @Id
         private Long id;
         private String name;
     }
     
    this mapping:
     @IgnoreDeclaredProperties
     class B extends A {
         private String foo;
         private String bar;
     }
     
    is equivalent to:
     class B extends A {
         @DiffIgnore
         private String foo;
         @DiffIgnore
         private String bar;
     }
     
    See Also:
    DiffIgnore