Annotation Interface Ref


@Retention(RUNTIME) @Target(FIELD) public @interface Ref
Annotation to indicate that the annotated field is stored as a document in another collection instead of a nested document. The document _id of that document is stored as a reference in the stored field.
Author:
Mark Vollmary
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Whether the entity should be loaded lazily
  • Element Details

    • lazy

      boolean lazy
      Whether the entity should be loaded lazily
      Default:
      false