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
      java.lang.String column
      The name of the distinguisher column.
      java.lang.String value
      The value to be stored in the distinguisher column for this relation.
    • Optional Element Summary

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

      • column

        java.lang.String column
        The name of the distinguisher column.
        Returns:
        The column name
      • value

        java.lang.String value
        The value to be stored in the distinguisher column for this relation.
        Returns:
        distinguishing value
      • 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