/** INTERNAL: Used for annotation loading. */
  public ColumnMetadata(MetadataAnnotation column, MetadataAccessor accessor) {
    super(column, accessor);

    if (column != null) {
      // Apply the values from the column annotation.
      setUnique(column.getAttributeBooleanDefaultFalse("unique"));

      setScale(column.getAttributeInteger("scale"));
      setLength(column.getAttributeInteger("length"));
      setPrecision(column.getAttributeInteger("precision"));

      setTable(column.getAttributeString("table"));
    }
  }