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, SpatialTypeContributor, SQLServerDialect, SqlServerSpatialDialect, SybaseASEDialect, SybaseDialect
An object that contributes custom types and type descriptors, eventually to
a
TypeConfiguration, via an instance of
TypeContributions.
-
The most common way to integrate a
TypeContributoris by making it discoverable via the JavaServiceLoaderfacility. -
Alternatively, a
TypeContributormay be programmatically supplied toConfiguration.registerTypeContributor(TypeContributor)or evenMetadataBuilder.applyTypes(TypeContributor). -
When bootstrapping Hibernate via JPA or
Configuration, Finally, in the JPA boostrap process,TypeContributors may be listed viaJpaSettings.TYPE_CONTRIBUTORS.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidcontribute(TypeContributions typeContributions, ServiceRegistry serviceRegistry) Contribute types
-
Method Details
-
contribute
Contribute types- Parameters:
typeContributions- The callback for adding contributed typesserviceRegistry- The service registry
-