Annotation Type DiscriminatorColumn

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String columnDefinition
      (Optional) The SQL fragment that is used when generating the DDL for the discriminator column.
      DiscriminatorType discriminatorType
      (Optional) The type of object/column to use as a class discriminator.
      int length
      (Optional) The column length for String-based discriminator types.
      String name
      (Optional) The name of column to be used for the discriminator.
      String options
      (Optional) A SQL fragment appended to the generated DDL which declares this column.
    • Element Detail

      • name

        String name
        (Optional) The name of column to be used for the discriminator.
        Default:
        "DTYPE"
      • discriminatorType

        DiscriminatorType discriminatorType
        (Optional) The type of object/column to use as a class discriminator. Defaults to DiscriminatorType.STRING.
        Default:
        jakarta.persistence.DiscriminatorType.STRING
      • columnDefinition

        String columnDefinition
        (Optional) The SQL fragment that is used when generating the DDL for the discriminator column.

        Defaults to the provider-generated SQL to create a column of the specified discriminator type.

        Default:
        ""
      • options

        String options
        (Optional) A SQL fragment appended to the generated DDL which declares this column. May not be used in conjunction with columnDefinition().
        Since:
        3.2
        Default:
        ""
      • length

        int length
        (Optional) The column length for String-based discriminator types. Ignored for other discriminator types.
        Default:
        31