Annotation Type IgnorePropertyValue


  • @Retention(RUNTIME)
    @Target({METHOD,TYPE})
    public @interface IgnorePropertyValue
    Allow the user define the properties that should be ignored when checking the expected objects. Accepts two formats for property definition:
    1. collection.property : When is defined both collection name and property name, the exclusion only will affect to the indicated collection. e.g: With @IgnorePropertyValue(properties = {"book.date"}), the property will be ignored in each object of the other collection. If other objects have the property 'date' it won't be ignored.
      property : When only is defined the property name, it will be excluded for all objects in any expected collection. e.g: With @IgnorePropertyValue(properties = {"date"}), the property 'date' will be ignored in each object, no matter the collection.
Author:
Víctor Hernández