Package org.hibernate.boot.model
Interface TypeContributions
-
public interface TypeContributionsAllows custom types and type descriptors to be contributed to the eventualTypeConfiguration, either by aDialector by aTypeContributor.- See Also:
TypeContributor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default voidcontributeAttributeConverter(Class<? extends AttributeConverter<?,?>> converterClass)Register anAttributeConverterclass.default voidcontributeJavaType(JavaType<?> descriptor)default voidcontributeJdbcType(JdbcType descriptor)default voidcontributeType(BasicType<?> type)Deprecated.See discussion ofTypeContributorin User Guide.default voidcontributeType(BasicType<?> type, String... keys)Deprecated.UsecontributeType(BasicType)instead.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.TypeConfigurationgetTypeConfiguration()TheTypeConfigurationto contribute to
-
-
-
Method Detail
-
getTypeConfiguration
TypeConfiguration getTypeConfiguration()
TheTypeConfigurationto contribute to
-
contributeJavaType
default void contributeJavaType(JavaType<?> descriptor)
-
contributeJdbcType
default void contributeJdbcType(JdbcType descriptor)
-
contributeType
default void contributeType(UserType<?> type)
Register aUserTypeas the implicit (auto-applied) type for values of typeUserType.returnedClass().
-
contributeAttributeConverter
@Incubating default void contributeAttributeConverter(Class<? extends AttributeConverter<?,?>> converterClass)
Register anAttributeConverterclass.- Since:
- 6.2
-
contributeType
@Deprecated(since="6.0") default void contributeType(BasicType<?> type)
Deprecated.See discussion ofTypeContributorin 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,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
-
-