Annotation Type PersistReference


@Documented @Retention(RUNTIME) @Target(METHOD) @Exported public @interface PersistReference
Used on the accessor of an accessor/mutator pair to identify references within model interfaces to other (PortalEntitys).
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    boolean
    Is this an eager reference? True if it is, false if it's lazy.
    boolean
    Should the referenced object(s) be exported when this object is exported?
    boolean
    Is this a strong (aggregating) reference? PortalEntities referenced by strong references are owned by this PortalEntity, and will be deleted when this PortalEntity is deleted.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Should the referenced object(s) automatically derive their namespace from the source object when this is a strong reference?
    boolean
    Should the referenced object(s) inherit the Security ID of the source object?
    boolean
    Should the referenced object(s) derive their namespace from the source object?
  • Element Details

    • eager

      boolean eager
      Is this an eager reference? True if it is, false if it's lazy. PortalEntities referenced by eager references will be loaded into memory at the same time as this PortalEntity, whereas PortalEntities referenced by lazy references are loaded only on demend.
    • strong

      boolean strong
      Is this a strong (aggregating) reference? PortalEntities referenced by strong references are owned by this PortalEntity, and will be deleted when this PortalEntity is deleted.
    • export

      boolean export
      Should the referenced object(s) be exported when this object is exported?
    • propagateNamespace

      boolean propagateNamespace
      Should the referenced object(s) derive their namespace from the source object?
      Default:
      false
    • autoPropagateNamespace

      boolean autoPropagateNamespace
      Should the referenced object(s) automatically derive their namespace from the source object when this is a strong reference?
      Default:
      true
    • inheritSecurity

      boolean inheritSecurity
      Should the referenced object(s) inherit the Security ID of the source object?
      Default:
      false