Annotation Interface DefaultSchema


@Documented @Retention(RUNTIME) @Target(TYPE) public @interface DefaultSchema
The DefaultSchema annotation specifies a SchemaProvider class to handle obtaining a schema and row for the specified class.

For example, if your class is JavaBean, the JavaBeanSchema provider class knows how to vend schemas for this class. You can annotate it as follows:

@DefaultSchema(JavaBeanSchema.class)
 class MyClass {
   public String getFoo();
   void setFoo(String foo);
         ....
 }
 
  • Element Details