Class GaussDBOrdinalEnumJdbcType

java.lang.Object
org.hibernate.community.dialect.GaussDBEnumJdbcType
org.hibernate.community.dialect.GaussDBOrdinalEnumJdbcType
All Implemented Interfaces:
Serializable, org.hibernate.type.descriptor.jdbc.JdbcType

public class GaussDBOrdinalEnumJdbcType extends GaussDBEnumJdbcType
Represents a named enum type on GaussDB.

Hibernate does not automatically use this for enums mapped as EnumType.ORDINAL, and instead this type must be explicitly requested using:

@JdbcTypeCode(SqlTypes.NAMED_ORDINAL_ENUM)
See Also:
  • Field Details

  • Constructor Details

    • GaussDBOrdinalEnumJdbcType

      public GaussDBOrdinalEnumJdbcType()
  • Method Details

    • getDefaultSqlTypeCode

      public int getDefaultSqlTypeCode()
      Specified by:
      getDefaultSqlTypeCode in interface org.hibernate.type.descriptor.jdbc.JdbcType
      Overrides:
      getDefaultSqlTypeCode in class GaussDBEnumJdbcType