Annotation Type Reference


  • @Target(FIELD)
    @Retention(RUNTIME)
    public @interface Reference
    User: Stpehan Bösebeck Date: 26.03.12 Time: 11:18

    Mark this field as a reference to annother mongo object In mongo only the id will be stored here if automaticStore is true (default), objects will be stored if not already done

    • Element Detail

      • fieldName

        String fieldName
        Default:
        "."
      • automaticStore

        boolean automaticStore
        Default:
        true
      • lazyLoading

        boolean lazyLoading
        Default:
        false
      • targetCollection

        String targetCollection
        Default:
        "."