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.
    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.