public interface TypeContributions
TypeContributor
Modifier and Type | Method and Description |
---|---|
void |
contributeJavaTypeDescriptor(JavaTypeDescriptor descriptor)
Add the JavaTypeDescriptor to the
TypeConfiguration 's
JavaTypeDescriptorRegistry |
void |
contributeSqlTypeDescriptor(SqlTypeDescriptor descriptor)
Add the JavaTypeDescriptor to the
TypeConfiguration 's
JavaTypeDescriptorRegistry |
void |
contributeType(BasicType type) |
void |
contributeType(BasicType type,
String... keys)
Deprecated.
(since 5.3) Use
contributeType(BasicType) instead. Basic
types will be defined and handled much differently in 6.0 based on a combination
of JavaTypeDescriptor , 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 existing JavaTypeDescriptor and
SqlTypeDescriptor implementations (or write your own for custom types)
and use StandardBasicTypeTemplate to combine those with
registration keys and call contributeType(BasicType) instead |
void |
contributeType(CompositeUserType type,
String... keys)
Deprecated.
(since 5.3) Use
contributeType(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 |
void |
contributeType(UserType type,
String... keys)
Deprecated.
(since 5.3) Use
contributeType(BasicType) instead.
UserType , as currently defined, will be done very differently in 6.0.
In most cases a UserType can be simply replaced with proper
JavaTypeDescriptor . To get as close as possible to 6.0 in 5.3 use
existing JavaTypeDescriptor and SqlTypeDescriptor
implementations (or write your own for custom impls) and use
StandardBasicTypeTemplate to combine those with registration keys
and call contributeType(BasicType) instead |
TypeConfiguration |
getTypeConfiguration() |
TypeConfiguration getTypeConfiguration()
void contributeJavaTypeDescriptor(JavaTypeDescriptor descriptor)
TypeConfiguration
's
JavaTypeDescriptorRegistry
void contributeSqlTypeDescriptor(SqlTypeDescriptor descriptor)
TypeConfiguration
's
JavaTypeDescriptorRegistry
void contributeType(BasicType type)
@Deprecated void contributeType(BasicType type, String... keys)
contributeType(BasicType)
instead. Basic
types will be defined and handled much differently in 6.0 based on a combination
of JavaTypeDescriptor
, 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 existing JavaTypeDescriptor
and
SqlTypeDescriptor
implementations (or write your own for custom types)
and use StandardBasicTypeTemplate
to combine those with
registration keys and call contributeType(BasicType)
instead@Deprecated void contributeType(UserType type, String... keys)
contributeType(BasicType)
instead.
UserType
, as currently defined, will be done very differently in 6.0.
In most cases a UserType
can be simply replaced with proper
JavaTypeDescriptor
. To get as close as possible to 6.0 in 5.3 use
existing JavaTypeDescriptor
and SqlTypeDescriptor
implementations (or write your own for custom impls) and use
StandardBasicTypeTemplate
to combine those with registration keys
and call contributeType(BasicType)
instead@Deprecated void contributeType(CompositeUserType type, String... keys)
contributeType(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
methodsCopyright © 2021 JBoss by Red Hat. All rights reserved.