Annotation Type Collection

    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      Class<?> memberType
      Get type of the collection members.
      Collection.Type type
      Get the type parameter of the annotation.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean lazy
      If the collection should use lazy loading.
      boolean reference
      Specify if the non JCR-simple-types are references or child nodes.
    • Element Detail

      • type

        Collection.Type type
        Get the type parameter of the annotation. It must match the actual type or errors will occur.
        Returns:
        collection type.
      • memberType

        Class<?> memberType
        Get type of the collection members.
        Returns:
        member type.
      • lazy

        boolean lazy
        If the collection should use lazy loading.
        Returns:
        true if the collection should implement lazy loading.
        Default:
        true
      • reference

        boolean reference
        Specify if the non JCR-simple-types are references or child nodes.
        Returns:
        true if nodes are referenced, false if they are child nodes.
        Default:
        true