Package dev.morphia.annotations
Annotation Type NotSaved
-
@Retention(RUNTIME) @Target({FIELD,PARAMETER,TYPE}) @Deprecated(since="2.0", forRemoval=true) public @interface NotSaved
Deprecated, for removal: This API element is subject to removal in a future version.useLoadOnly
insteadWhen placed on an entity field, the field will not be written to mongodb. It will, however, be loaded normally. This is particularly useful in concert with
@PostLoad
and@PrePersist
to transform your data.