Package org.hibernate.boot.model
Interface TypeContributions
-
public interface TypeContributionsDefines 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 voidcontributeJavaType(JavaType<?> descriptor)Add the JavaType to theTypeConfiguration'sJavaTypeRegistrydefault voidcontributeJdbcType(JdbcType descriptor)Add the JdbcType to theTypeConfiguration'sJdbcTypeRegistrydefault voidcontributeType(BasicType<?> type)Deprecated.See user-guide section `2.2.46.default voidcontributeType(BasicType<?> type, String... keys)Deprecated.UsecontributeType(BasicType)instead.default voidcontributeType(UserType<?> type, String... keys)Deprecated.UsecontributeType(BasicType)instead.default <T> voidcontributeType(UserType<T> type)Registers a UserType as the implicit (auto-applied) type for values of typeUserType.returnedClass()TypeConfigurationgetTypeConfiguration()
-
-
-
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,JdbcTypeand a concept of a "value converter" (a JPA AttributeConverter, an enum value resolver, etc). To get as close as possible in 5.3 use existingJavaTypeandJdbcTypeimplementations (or write your own for custom types) and useStandardBasicTypeTemplateto 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 aUserTypecan be simply replaced with properJavaType. To get as close as possible to 6.0 in 5.3 use existingJavaTypeandJdbcTypeimplementations (or write your own for custom impls) and useStandardBasicTypeTemplateto combine those with registration keys and callcontributeType(BasicType)instead
-
-