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
@JavaServiceLoadable public interface TypeContributor
On object that contributes custom types and type descriptors, eventually to aTypeConfiguration, via an instance ofTypeContributions.-
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:
TypeConfiguration
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcontribute(TypeContributions typeContributions, ServiceRegistry serviceRegistry)Contribute types
-
-
-
Method Detail
-
contribute
void contribute(TypeContributions typeContributions, ServiceRegistry serviceRegistry)
Contribute types- Parameters:
typeContributions- The callback for adding contributed typesserviceRegistry- The service registry
-
-