Annotation Interface FieldValueMappingMigration
Marks an entity field to be mapped in a migration. The field value of each entity will be matched against each
mapping until one applies, the new value of that first matching mapping will be set.
- Since:
- 0.2
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interface
Describe a mapping for this field.static enum
The possible operations to do if no mapping matches the old value.static enum
An operator for matching a mapping. -
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionThe mappings that should be appliedlong
The schema version this migration is part of -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionDefine the default behaviour if the old value is not present in the mappings
-
Element Details
-
version
long versionThe schema version this migration is part of -
value
The mappings that should be applied -
ifMissing
Define the default behaviour if the old value is not present in the mappings- Default:
KEEP
-