Annotation Type Reference


  • @Documented
    @Inherited
    @Retention(RUNTIME)
    @Target(FIELD)
    public @interface Reference
    Author:
    Olafur Gauti Gudmundsson, Scott Hernandez
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.Class<?> concreteClass
      Deprecated.
      unimplemented
      boolean idOnly  
      boolean ignoreMissing  
      boolean lazy  
      java.lang.String value  
    • Element Detail

      • concreteClass

        @Deprecated
        java.lang.Class<?> concreteClass
        Deprecated.
        unimplemented
        Returns:
        the concrete class to instantiate.
        Default:
        java.lang.Object.class
      • idOnly

        boolean idOnly
        Returns:
        whether only _id should be stored versus storing a DBRef
        Default:
        false
      • ignoreMissing

        boolean ignoreMissing
        Returns:
        if true, Ignore any reference that don't resolve (aren't in mongodb)
        Default:
        false
      • lazy

        boolean lazy
        Returns:
        if true, Create a proxy around the reference which will be resolved on the first method call.
        Default:
        false
      • value

        java.lang.String value
        Returns:
        The name of the Mongo value to store the field. Defaults to the name of the field being annotated.
        Default:
        "."