@Repeatable(value=ExplicitTypes.class) @Retention(value=RUNTIME) @Target(value={TYPE,ANNOTATION_TYPE}) public @interface ExplicitType
TypeTranslator
. Annotate row class,
subclass of Table
or subclass of Database
. A type only
needs to be annotated once for a database or only once per table.
When used on row or table class, then type is defined with
Table.putTypeTranslator(Class, TypeTranslator)
. When used on
a database, then type is added with
Database.putTypeTranslator(Class, TypeTranslator)
.
Modifier and Type | Required Element and Description |
---|---|
java.lang.Class<? extends TypeTranslator> |
translator |
java.lang.Class<?> |
type |
public abstract java.lang.Class<?> type
public abstract java.lang.Class<? extends TypeTranslator> translator