Package io.micronaut.data.annotation
Annotation Type MappedProperty
-
@Retention(RUNTIME) @Target({ANNOTATION_TYPE,FIELD,METHOD}) @Documented public @interface MappedProperty
Designates a method or field that is mapped as a persistent property. Typically not used directly but as a meta-annotation.- Since:
- 1.0
- Author:
- graemerocher
-
-
Field Summary
Fields Modifier and Type Fields Description static java.lang.String
ALIAS
name of the meta-annotation member to store the mapped property (column) alias configuration.static java.lang.String
EMBEDDED_PROPERTIES
name of the meta-annotation member to store the embedded property configuration.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.String
alias
java.lang.Class<?>
converter
java.lang.Class<?>
converterPersistedType
java.lang.String
definition
Used to define the mapping.DataType
type
java.lang.String
value
The destination the property is persisted to.
-
-
-
-
type
@AliasFor(annotation=TypeDef.class, member="type") DataType type
- Returns:
- The data type of the property.
- Default:
- io.micronaut.data.model.DataType.OBJECT
-
-
-
converter
@AliasFor(annotation=TypeDef.class, member="converter") java.lang.Class<?> converter
- Returns:
- The converter of the property.
- Default:
- java.lang.Object.class
-
-