Annotation Interface RefTargets


@Retention(RUNTIME) @Target(FIELD) public @interface RefTargets
Declares the catalog/document types allowed in a PolyRef field.

Use together with Attribute or Dimension. The metadata scanner rejects a polymorphic reference without an explicit allowlist and rejects targets that are not onno catalogs or documents.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<?>[]
     
  • Element Details

    • value

      Class<?>[] value