Package org.hibernate.boot.model
Interface TypeContributor
- All Known Implementing Classes:
AbstractHANADialect
,AbstractTransactSQLDialect
,AzureSQLServerDialect
,CockroachDB202SpatialDialect
,CockroachDialect
,DB2400Dialect
,DB2400V7R3Dialect
,DB2Dialect
,DB2iDialect
,DB2SpatialDialect
,DB2zDialect
,DerbyDialect
,Dialect
,DialectDelegateWrapper
,GenericDialect
,H2Dialect
,HANACloudColumnStoreDialect
,HANAColumnStoreDialect
,HANADialect
,HANARowStoreDialect
,HANASpatialDialect
,HSQLDialect
,MariaDB106Dialect
,MariaDBDialect
,MySQL56InnoDBSpatialDialect
,MySQL56SpatialDialect
,MySQL5InnoDBSpatialDialect
,MySQL5SpatialDialect
,MySQL8Dialect
,MySQLDialect
,MySQLSpatialDialect
,OracleDialect
,OracleSpatial10gDialect
,OracleSpatialSDO10gDialect
,PostgisPG10Dialect
,PostgisPG93Dialect
,PostgisPG94Dialect
,PostgisPG95Dialect
,PostgresPlusDialect
,PostgreSQLDialect
,SpannerDialect
,SpatialTypeContributor
,SQLServer2012Dialect
,SqlServer2012SpatialDialect
,SQLServer2016Dialect
,SQLServerDialect
,SybaseASEDialect
,SybaseDialect
,TiDBDialect
,TypeContributorImpl
On object that contributes custom types and type descriptors, eventually to
a
TypeConfiguration
, via an instance of
TypeContributions
.
-
The most common way to integrate a
TypeContributor
is by making it discoverable via the JavaServiceLoader
facility. -
Alternatively, a
TypeContributor
may be programmatically supplied toConfiguration.registerTypeContributor(TypeContributor)
or evenMetadataBuilder.applyTypes(TypeContributor)
. -
When bootstrapping Hibernate via JPA or
Configuration
, Finally, in the JPA boostrap process,TypeContributor
s may be listed viaJpaSettings.TYPE_CONTRIBUTORS
.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
contribute
(TypeContributions typeContributions, ServiceRegistry serviceRegistry) Contribute types
-
Method Details
-
contribute
Contribute types- Parameters:
typeContributions
- The callback for adding contributed typesserviceRegistry
- The service registry
-