Annotation Type LoadOnly


  • @Retention(RUNTIME)
    @Target({FIELD,METHOD})
    public @interface LoadOnly

    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.