Annotation Type Column

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String allowsNull
      Whether the column allows null values to be inserted.
      String defaultValue
      Default value for this column.
      Extension[] extensions
      Vendor extensions.
      String insertValue
      Value to be inserted when this is an "unmapped" column
      String jdbcType
      JDBC Type for this column.
      int length
      Maximum length of data stored in this column.
      String name
      Name of the column.
      int position
      Position of this column in the table for this class (0=first, -1=unset).
      int scale
      Scale for the column when handling floating point values.
      String sqlType
      SQL Type for this column.
      String target
      Target column for this column in the other table when part of a foreign key relation.
      String targetMember
      Target member in the other class or interface for this column when part of a bidirectional relation.
    • Element Detail

      • name

        String name
        Name of the column.
        Returns:
        the name of the column
        Default:
        ""
      • target

        String target
        Target column for this column in the other table when part of a foreign key relation.
        Returns:
        the target column in the other table for this column when part of a foreign key relation.
        Default:
        ""
      • targetMember

        String targetMember
        Target member in the other class or interface for this column when part of a bidirectional relation.
        Returns:
        the target member for this column when part of a bidirectional relation.
        Default:
        ""
      • jdbcType

        String jdbcType
        JDBC Type for this column.
        Returns:
        JDBC type for this column
        Default:
        ""
      • sqlType

        String sqlType
        SQL Type for this column.
        Returns:
        SQL type for this column
        Default:
        ""
      • length

        int length
        Maximum length of data stored in this column.
        Returns:
        the maximum length of data stored in this column
        Default:
        -1
      • scale

        int scale
        Scale for the column when handling floating point values.
        Returns:
        the scale for the column when handling floating point values
        Default:
        -1
      • allowsNull

        String allowsNull
        Whether the column allows null values to be inserted.
        Returns:
        whether the column allows null values to be inserted
        Default:
        ""
      • defaultValue

        String defaultValue
        Default value for this column.
        Returns:
        the default value for this column
        Default:
        ""
      • insertValue

        String insertValue
        Value to be inserted when this is an "unmapped" column
        Returns:
        the value to be inserted when this is an "unmapped" column
        Default:
        ""
      • extensions

        Extension[] extensions
        Vendor extensions.
        Returns:
        the vendor extensions
        Default:
        {}
      • position

        int position
        Position of this column in the table for this class (0=first, -1=unset).
        Returns:
        (relative) position of this column
        Since:
        3.1
        Default:
        -1