Annotation Interface DocumentProjection


@Documented @Target({}) @Retention(RUNTIME) public @interface DocumentProjection
Configures the direct current-state document maintained by a Model whose persistence stores a document.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Collection receiving current Model documents.
    Optional property path used as the document's end timestamp.
    boolean
    Whether this current document is exposed through the Model's public search collection.
    Optional property path used as the document's start timestamp.
  • Element Details

    • searchable

      boolean searchable
      Whether this current document is exposed through the Model's public search collection.

      When false, Fluxzero does not expose the document through an unrestricted typed Model search. The direct document remains in its normal resolved collection. A Model without a separate Graph role is stored without a text summary, facets or sortable indexes and remains available through direct Model loads, aliases and exact parent or ancestor relationships. A Model that participates in Graph composition still maintains its independently required internal component indexes; use @SearchExclude, @Facet and @Sortable to shape those indexes explicitly.

      Default:
      true
    • collection

      String collection
      Collection receiving current Model documents. Blank defaults to the Model's simple class name.
      Default:
      ""
    • timestampPath

      String timestampPath
      Optional property path used as the document's start timestamp.
      Default:
      ""
    • endPath

      String endPath
      Optional property path used as the document's end timestamp.
      Default:
      ""