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 eventualTypeConfiguration
, either by aDialect
or by aTypeContributor
.- See Also:
TypeContributor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default void
contributeAttributeConverter(Class<? extends AttributeConverter<?,?>> converterClass)
Register anAttributeConverter
class.default void
contributeJavaType(JavaType<?> descriptor)
default void
contributeJdbcType(JdbcType descriptor)
default void
contributeType(BasicType<?> type)
Deprecated.See discussion ofTypeContributor
in User Guide.default void
contributeType(BasicType<?> type, String... keys)
Deprecated.UsecontributeType(BasicType)
instead.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.TypeConfiguration
getTypeConfiguration()
TheTypeConfiguration
to contribute to
-
-
-
Method Detail
-
getTypeConfiguration
TypeConfiguration getTypeConfiguration()
TheTypeConfiguration
to contribute to
-
contributeJavaType
default void contributeJavaType(JavaType<?> descriptor)
-
contributeJdbcType
default void contributeJdbcType(JdbcType descriptor)
-
contributeType
default void contributeType(UserType<?> type)
Register aUserType
as the implicit (auto-applied) type for values of typeUserType.returnedClass()
.
-
contributeAttributeConverter
@Incubating default void contributeAttributeConverter(Class<? extends AttributeConverter<?,?>> converterClass)
Register anAttributeConverter
class.- Since:
- 6.2
-
contributeType
@Deprecated(since="6.0") default void contributeType(BasicType<?> type)
Deprecated.See discussion ofTypeContributor
in User Guide.
-
contributeType
@Deprecated(since="5.3") default void contributeType(BasicType<?> type, String... keys)
Deprecated.UsecontributeType(BasicType)
instead. Basic types will be defined and handled much differently in 6.0 based on a combination ofJavaType
,JdbcType
and a concept of a "value converter" (a JPA AttributeConverter, an enum value resolver, etc). To get as close as possible in 5.3 use existingJavaType
andJdbcType
implementations (or write your own for custom types) and useStandardBasicTypeTemplate
to combine those with registration keys and callcontributeType(BasicType)
instead
-
contributeType
@Deprecated(since="5.3") default void contributeType(UserType<?> type, String... keys)
Deprecated.UsecontributeType(BasicType)
instead.UserType
, as currently defined, will be done very differently in 6.0. In most cases aUserType
can be simply replaced with properJavaType
. To get as close as possible to 6.0 in 5.3 use existingJavaType
andJdbcType
implementations (or write your own for custom impls) and useStandardBasicTypeTemplate
to combine those with registration keys and callcontributeType(BasicType)
instead
-
-