Annotation Type NotSaved

  • @Retention(RUNTIME)
    public @interface NotSaved
    Deprecated, for removal: This API element is subject to removal in a future version.
    use LoadOnly instead

    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.