Package org.hibernate.boot.model
Interface TypeContributor
- All Known Implementing Classes:
AbstractHANADialect,AbstractTransactSQLDialect,AzureSQLServerDialect,CockroachDialect,DB2400Dialect,DB2400V7R3Dialect,DB2Dialect,DB2iDialect,DB2zDialect,DerbyDialect,Dialect,DialectDelegateWrapper,GenericDialect,H2Dialect,HANACloudColumnStoreDialect,HANAColumnStoreDialect,HANADialect,HANARowStoreDialect,HSQLDialect,MariaDB106Dialect,MariaDBDialect,MySQL8Dialect,MySQLDialect,OracleDialect,PostgresPlusDialect,PostgreSQLDialect,SpannerDialect,SQLServer2012Dialect,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
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.
- Author:
- Steve Ebersole
- 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
-