Package org.hibernate.boot.model
Interface TypeContributor
-
- All Known Implementing Classes:
AbstractHANADialect
,AbstractTransactSQLDialect
,CockroachDB202SpatialDialect
,CockroachDialect
,DB2400Dialect
,DB2400V7R3Dialect
,DB2Dialect
,DB2iDialect
,DB2SpatialDialect
,DB2zDialect
,DerbyDialect
,Dialect
,DialectDelegateWrapper
,H2Dialect
,HANACloudColumnStoreDialect
,HANAColumnStoreDialect
,HANARowStoreDialect
,HANASpatialDialect
,HSQLDialect
,MariaDB103Dialect
,MariaDB103SpatialDialect
,MariaDB106Dialect
,MariaDBDialect
,MySQL56InnoDBSpatialDialect
,MySQL56SpatialDialect
,MySQL57Dialect
,MySQL5InnoDBSpatialDialect
,MySQL5SpatialDialect
,MySQL8Dialect
,MySQLDialect
,MySQLSpatialDialect
,Oracle12cDialect
,OracleDialect
,OracleSpatial10gDialect
,OracleSpatialSDO10gDialect
,PostgisPG10Dialect
,PostgisPG93Dialect
,PostgisPG94Dialect
,PostgisPG95Dialect
,PostgresPlusDialect
,PostgreSQL10Dialect
,PostgreSQLDialect
,SpannerDialect
,SpatialTypeContributor
,SQLServer2008Dialect
,SqlServer2008SpatialDialect
,SQLServer2012Dialect
,SqlServer2012SpatialDialect
,SQLServer2016Dialect
,SQLServerDialect
,SybaseASEDialect
,SybaseDialect
,TiDBDialect
,TypeContributorImpl
@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
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:
TypeConfiguration
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
contribute(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
-
-