Package io.micronaut.data.annotation
Annotation Interface TypeDef
@Retention(RUNTIME)
@Target({ANNOTATION_TYPE,TYPE,PARAMETER,METHOD,FIELD})
@Documented
@Repeatable(TypeDefinitions.class)
@Inherited
public @interface TypeDef
Type definitions allow associating existing types with a specific
DataType. Can be applied
as a stereotype (meta-annotation) to other Repository and/or MappedEntity to provide
additional type information for custom types.- Since:
- 1.0.0
- Author:
- graemerocher
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements
-
Element Details
-
type
DataType typeThe data type.- Returns:
- The type
-
converter
Class<?> converterThe data converter.- Returns:
- The converter class
- Default:
java.lang.Object.class
-
classes
Class[] classes- Returns:
- The classes for this data type.
- Default:
{}
-
names
String[] names- Returns:
- The class or parameter names for this data type.
- Default:
{}
-