Annotation Type SharedRelation


@Target({ANNOTATION_TYPE,FIELD,METHOD}) @Retention(RUNTIME) public @interface SharedRelation
Extension annotation providing for marking a relation as "shared" and adding a distinguisher column.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The name of the distinguisher column.
    The value to be stored in the distinguisher column for this relation.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Whether the distinguisher column defaults to being part of the PK (false unless specified).
  • Element Details

    • column

      String column
      The name of the distinguisher column.
      Returns:
      The column name
    • primaryKey

      boolean primaryKey
      Whether the distinguisher column defaults to being part of the PK (false unless specified).
      Returns:
      Whether part of the PK
      Default:
      false
    • value

      String value
      The value to be stored in the distinguisher column for this relation.
      Returns:
      distinguishing value