Annotation Interface Relation


Annotation used to indicate a field or method is a relation to another type. Typically not used directly but instead mapped to.
Since:
1.0
Author:
graemerocher
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Cascade type handling for different associations.
    static enum 
    The relation kind.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    How to cascade insert/delete operations to the associated entity.
     
  • Element Details

    • mappedBy

      String mappedBy
      Returns:
      The inverse property that this relation is mapped by
      Default:
      ""
    • cascade

      Relation.Cascade[] cascade
      How to cascade insert/delete operations to the associated entity. Default is none.
      Returns:
      The cascade handling
      Default:
      {NONE}