Package org.hibernate.boot.model
Interface TypeContributions
- All Known Implementing Classes:
MetadataBuilderImpl
public interface TypeContributions
Allows custom types and type descriptors to be contributed to the eventual
TypeConfiguration, either by a Dialect
or by a TypeContributor.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidcontributeAttributeConverter(Class<? extends AttributeConverter<?, ?>> converterClass) Register anAttributeConverterclass.default voidcontributeJavaType(JavaType<?> descriptor) default voidcontributeJdbcType(JdbcType descriptor) default voidcontributeJdbcTypeConstructor(JdbcTypeConstructor typeConstructor) default voidcontributeType(BasicType<?> type) Deprecated.default voidcontributeType(BasicType<?> type, String... keys) Deprecated.UsecontributeType(BasicType)instead.default voidcontributeType(CompositeUserType<?> type) Register aCompositeUserTypeas the implicit (auto-applied) type for values of typeCompositeUserType.returnedClass().default voidcontributeType(UserType<?> type) Register aUserTypeas the implicit (auto-applied) type for values of typeUserType.returnedClass().default voidcontributeType(UserType<?> type, String... keys) Deprecated.UsecontributeType(BasicType)instead.TheTypeConfigurationto contribute to
-
Method Details
-
getTypeConfiguration
TypeConfiguration getTypeConfiguration()TheTypeConfigurationto contribute to -
contributeJavaType
-
contributeJdbcType
-
contributeJdbcTypeConstructor
-
contributeType
Register aUserTypeas the implicit (auto-applied) type for values of typeUserType.returnedClass(). -
contributeType
Register aCompositeUserTypeas the implicit (auto-applied) type for values of typeCompositeUserType.returnedClass().- Since:
- 6.4
-
contributeAttributeConverter
@Incubating default void contributeAttributeConverter(Class<? extends AttributeConverter<?, ?>> converterClass) Register anAttributeConverterclass.- Since:
- 6.2
-
contributeType
Deprecated.See discussion ofTypeContributorin User Guide. -
contributeType
Deprecated.UsecontributeType(BasicType)instead. -
contributeType
Deprecated.UsecontributeType(BasicType)instead.
-
TypeContributorin User Guide.