@Retention(value=RUNTIME) @Target(value={FIELD,PARAMETER,TYPE}) public @interface NotSaved
When 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.
@PostLoad
@PrePersist
Copyright © 2016. All rights reserved.