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 void
contributeAttributeConverter
(Class<? extends AttributeConverter<?, ?>> converterClass) Register anAttributeConverter
class.default void
contributeJavaType
(JavaType<?> descriptor) default void
contributeJdbcType
(JdbcType descriptor) default void
contributeJdbcTypeConstructor
(JdbcTypeConstructor typeConstructor) default void
contributeType
(BasicType<?> type) Deprecated.default void
contributeType
(BasicType<?> type, String... keys) Deprecated.UsecontributeType(BasicType)
instead.default void
contributeType
(CompositeUserType<?> type) Register aCompositeUserType
as the implicit (auto-applied) type for values of typeCompositeUserType.returnedClass()
.default void
contributeType
(UserType<?> type) Register aUserType
as the implicit (auto-applied) type for values of typeUserType.returnedClass()
.default void
contributeType
(UserType<?> type, String... keys) Deprecated.UsecontributeType(BasicType)
instead.TheTypeConfiguration
to contribute to
-
Method Details
-
getTypeConfiguration
TypeConfiguration getTypeConfiguration()TheTypeConfiguration
to contribute to -
contributeJavaType
-
contributeJdbcType
-
contributeJdbcTypeConstructor
-
contributeType
Register aUserType
as the implicit (auto-applied) type for values of typeUserType.returnedClass()
. -
contributeType
Register aCompositeUserType
as the implicit (auto-applied) type for values of typeCompositeUserType.returnedClass()
.- Since:
- 6.4
-
contributeAttributeConverter
@Incubating default void contributeAttributeConverter(Class<? extends AttributeConverter<?, ?>> converterClass) Register anAttributeConverter
class.- Since:
- 6.2
-
contributeType
Deprecated.See discussion ofTypeContributor
in User Guide. -
contributeType
Deprecated.UsecontributeType(BasicType)
instead. -
contributeType
Deprecated.UsecontributeType(BasicType)
instead.
-
TypeContributor
in User Guide.