Annotation Interface Composition


@Target({METHOD,FIELD}) @Retention(RUNTIME) public @interface Composition
Marks a reference as composition. Composition implies ownership, that is the referenced object exists only as part of the owning entity.

An attribute marked with this annotation yields the MetaProperty of type MetaProperty.Type.COMPOSITION

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Inverse property name.
  • Element Details

    • inverse

      String inverse
      Inverse property name.
      Default:
      ""