Annotation Interface ReferenceCopy


@Target(FIELD) @Retention(RUNTIME) @Documented public @interface ReferenceCopy
Annotation for Component fields to indicate only the property reference should be made (as opposed to a new object) when doing a component copy
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Indicates whether a new collection instance should be made with collection elements copied by reference
    boolean
    Indicates that a field should be omitted from copying.
  • Element Details

    • newCollectionInstance

      boolean newCollectionInstance
      Indicates whether a new collection instance should be made with collection elements copied by reference
      Returns:
      boolean true if new collection instance should be made, false if the whole collection should be copied by reference
      Default:
      false
    • referenceTransient

      boolean referenceTransient
      Indicates that a field should be omitted from copying.
      Returns:
      true if the field should be omitted from copying, false to follow newCollectionInstance() semantics.
      Default:
      false