Annotation Type NotSaved


  • @Retention(RUNTIME)
    @Target({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.