Package org.hibernate.type.spi

Class TypeConfiguration

java.lang.Object
org.hibernate.type.spi.TypeConfiguration
All Implemented Interfaces:
Serializable,SessionFactoryObserver

@Incubatingpublic classTypeConfigurationextendsObjectimplementsSessionFactoryObserver,Serializable
Each instance defines a set oftypes available in a given persistence unit, and isolates them from other configurations.

Note that each instance ofType is inherently "scoped" to aTypeConfiguration. We always obtain a reference to aType via theTypeConfiguration associated with the current persistence unit.

On the other hand, aType does not inherently have access to its parentTypeConfiguration since extensions may contribute instances ofType, viaTypeContributions, for example, and the instantiation of such instances occurs outside the control of Hibernate.

In particular, a customTypeContributor may contribute types to aTypeConfiguration.

If aType requires access to the parentTypeConfiguration, it should implementTypeConfigurationAware.

Since:
5.3
See Also: