Interface TypeContributor

All Known Implementing Classes:
AbstractTransactSQLDialect, AzureSQLServerDialect, CockroachDB202SpatialDialect, CockroachDialect, DB2Dialect, DB2iDialect, DB2SpatialDialect, DB2zDialect, Dialect, GenericDialect, H2Dialect, HANADialect, HANASpatialDialect, HSQLDialect, MariaDBDialect, MySQL56InnoDBSpatialDialect, MySQL56SpatialDialect, MySQL5InnoDBSpatialDialect, MySQL5SpatialDialect, MySQLDialect, MySQLSpatialDialect, OracleDialect, OracleSpatial10gDialect, OracleSpatialSDO10gDialect, PostgisPG10Dialect, PostgisPG93Dialect, PostgisPG94Dialect, PostgisPG95Dialect, PostgresPlusDialect, PostgreSQLDialect, SpannerDialect, SpannerPostgreSQLDialect, SpatialTypeContributor, SQLServerDialect, SqlServerSpatialDialect, SybaseASEDialect, SybaseDialect

@JavaServiceLoadable public interface TypeContributor
An object that contributes custom types and type descriptors, eventually to a TypeConfiguration, via an instance of TypeContributions.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    contribute(TypeContributions typeContributions, ServiceRegistry serviceRegistry)
    Contribute types
    default int
    Determines order in which the contributions will be applied (lowest ordinal first).
  • Method Details

    • contribute

      void contribute(TypeContributions typeContributions, ServiceRegistry serviceRegistry)
      Contribute types
      Parameters:
      typeContributions - The callback for adding contributed types
      serviceRegistry - The service registry
    • ordinal

      default int ordinal()
      Determines order in which the contributions will be applied (lowest ordinal first).

      The range 0-500 is reserved for Hibernate, range 500-1000 for libraries and 1000-Integer.MAX_VALUE for user-defined TypeContributors.

      Contributions from higher precedence contributors (higher numbers) effectively override contributions from lower precedence. E.g. if a contributor with precedence 2000 contributes some type, that will override Hibernate's standard type of that name.

      Returns:
      the ordinal for this TypeContributor