Annotation Interface SchemaIgnore


@Documented @Retention(RUNTIME) @Target({FIELD,METHOD}) public @interface SchemaIgnore
When used on a POJO field or a JavaBean getter, that field or getter is ignored from the inferred schema.

For example, a Java POJO with a field that we don't want included in the schema:


  @DefaultSchema(JavaBeanSchema.class)
   class MyClass {
     public String user;
     public int age;

    @SchemaIgnore
     public String pleaseDontAddToSchema;
   }
 

In this case, the pleaseDontAddToSchema will be excluded from the schema, and implicitly dropped from calculations.