Package dev.morphia.annotations
Annotation Type AlsoLoad
-
@Retention(RUNTIME) @Target(FIELD) public @interface AlsoLoad
Annotation which helps migrate schemas by loading one of several possible properties in the document into fields or methods. This is typically used when a field is renamed, allowing the field to be populated by both its current name and any prior names.
When placed on a field, the additional names (document field) will be checked when this field is loaded. If the document contains data for more than one of the names, an exception will be thrown.
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.String[]
value
-