Package org.hibernate.boot.model
Interface TypeContributions
-
public interface TypeContributions
Defines the target contributing types, whether via dialects orTypeContributor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
contributeJavaTypeDescriptor(JavaTypeDescriptor descriptor)
Add the JavaTypeDescriptor to theTypeConfiguration
'sJavaTypeDescriptorRegistry
void
contributeSqlTypeDescriptor(SqlTypeDescriptor descriptor)
Add the JavaTypeDescriptor to theTypeConfiguration
'sJavaTypeDescriptorRegistry
void
contributeType(BasicType type)
void
contributeType(BasicType type, java.lang.String... keys)
Deprecated.(since 5.3) UsecontributeType(BasicType)
instead.void
contributeType(CompositeUserType type, java.lang.String... keys)
Deprecated.(since 5.3) UsecontributeType(BasicType)
instead.void
contributeType(UserType type, java.lang.String... keys)
Deprecated.(since 5.3) UsecontributeType(BasicType)
instead.TypeConfiguration
getTypeConfiguration()
-
-
-
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, java.lang.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
,SqlTypeDescriptor
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 existingJavaTypeDescriptor
andSqlTypeDescriptor
implementations (or write your own for custom types) and useStandardBasicTypeTemplate
to combine those with registration keys and callcontributeType(BasicType)
instead
-
contributeType
@Deprecated void contributeType(UserType type, java.lang.String... keys)
Deprecated.(since 5.3) UsecontributeType(BasicType)
instead.UserType
, as currently defined, will be done very differently in 6.0. In most cases aUserType
can be simply replaced with properJavaTypeDescriptor
. To get as close as possible to 6.0 in 5.3 use existingJavaTypeDescriptor
andSqlTypeDescriptor
implementations (or write your own for custom impls) and useStandardBasicTypeTemplate
to combine those with registration keys and callcontributeType(BasicType)
instead
-
contributeType
@Deprecated void contributeType(CompositeUserType type, java.lang.String... keys)
Deprecated.(since 5.3) UsecontributeType(BasicType)
instead.CompositeUserType
, as currently defined, will be done very differently in 6.0.CompositeUserType
should 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
-
-