Package org.hibernate.boot.model
Interface TypeContributions
-
- All Known Implementing Classes:
MetadataBuilderImpl
public interface TypeContributions
Defines the target contributing types, whether via dialects orTypeContributor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default void
contributeJavaType(JavaType<?> descriptor)
Add the JavaType to theTypeConfiguration
'sJavaTypeRegistry
default void
contributeJdbcType(JdbcType descriptor)
Add the JdbcType to theTypeConfiguration
'sJdbcTypeRegistry
default void
contributeType(BasicType<?> type)
Deprecated.See user-guide section `2.2.46.default void
contributeType(BasicType<?> type, String... keys)
Deprecated.UsecontributeType(BasicType)
instead.default void
contributeType(UserType<?> type, String... keys)
Deprecated.UsecontributeType(BasicType)
instead.default <T> void
contributeType(UserType<T> type)
Registers a UserType as the implicit (auto-applied) type for values of typeUserType.returnedClass()
TypeConfiguration
getTypeConfiguration()
-
-
-
Method Detail
-
getTypeConfiguration
TypeConfiguration getTypeConfiguration()
-
contributeJavaType
default void contributeJavaType(JavaType<?> descriptor)
Add the JavaType to theTypeConfiguration
'sJavaTypeRegistry
-
contributeJdbcType
default void contributeJdbcType(JdbcType descriptor)
Add the JdbcType to theTypeConfiguration
'sJdbcTypeRegistry
-
contributeType
default <T> void contributeType(UserType<T> type)
Registers a UserType as the implicit (auto-applied) type for values of typeUserType.returnedClass()
-
contributeType
@Deprecated(since="6.0") default void contributeType(BasicType<?> type)
Deprecated.See user-guide section `2.2.46. TypeContributor` for details - `basic_types.adoc`
-
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
-
-