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 Deprecated Methods Modifier and Type Method Description voidcontributeJavaTypeDescriptor(JavaTypeDescriptor descriptor)Add the JavaTypeDescriptor to theTypeConfiguration'sJavaTypeDescriptorRegistryvoidcontributeSqlTypeDescriptor(SqlTypeDescriptor descriptor)Add the JavaTypeDescriptor to theTypeConfiguration'sJavaTypeDescriptorRegistryvoidcontributeType(BasicType type)voidcontributeType(BasicType type, String... keys)Deprecated.(since 5.3) UsecontributeType(BasicType)instead.voidcontributeType(CompositeUserType type, String... keys)Deprecated.(since 5.3) UsecontributeType(BasicType)instead.voidcontributeType(UserType type, String... keys)Deprecated.(since 5.3) UsecontributeType(BasicType)instead.TypeConfigurationgetTypeConfiguration()
-
-
-
Method Detail
-
getTypeConfiguration
TypeConfiguration getTypeConfiguration()
-
contributeJavaTypeDescriptor
void contributeJavaTypeDescriptor(JavaTypeDescriptor descriptor)
Add the JavaTypeDescriptor to theTypeConfiguration'sJavaTypeDescriptorRegistry
-
contributeSqlTypeDescriptor
void contributeSqlTypeDescriptor(SqlTypeDescriptor descriptor)
Add the JavaTypeDescriptor to theTypeConfiguration'sJavaTypeDescriptorRegistry
-
contributeType
void contributeType(BasicType type)
-
contributeType
@Deprecated void contributeType(BasicType type, String... keys)
Deprecated.(since 5.3) UsecontributeType(BasicType)instead. Basic types will be defined and handled much differently in 6.0 based on a combination ofJavaTypeDescriptor,SqlTypeDescriptorand a concept of a "value converter" (a JPA AttributeConverter, an enum value resolver, etc). To get as close as possible in 5.3 use existingJavaTypeDescriptorandSqlTypeDescriptorimplementations (or write your own for custom types) and useStandardBasicTypeTemplateto combine those with registration keys and callcontributeType(BasicType)instead
-
contributeType
@Deprecated void contributeType(UserType type, String... keys)
Deprecated.(since 5.3) UsecontributeType(BasicType)instead.UserType, as currently defined, will be done very differently in 6.0. In most cases aUserTypecan be simply replaced with properJavaTypeDescriptor. To get as close as possible to 6.0 in 5.3 use existingJavaTypeDescriptorandSqlTypeDescriptorimplementations (or write your own for custom impls) and useStandardBasicTypeTemplateto combine those with registration keys and callcontributeType(BasicType)instead
-
contributeType
@Deprecated void contributeType(CompositeUserType type, String... keys)
Deprecated.(since 5.3) UsecontributeType(BasicType)instead.CompositeUserType, as currently defined, will be done very differently in 6.0.CompositeUserTypeshould be replaced with a normal Hibernate component or JPA embeddable (different names, same thing. This embeddable may contain, in turn, custom types that should be handled as described on these methods
-
-