接口 TypeContributions
-
- 所有已知实现类:
MetadataBuilderImpl
public interface TypeContributionsDefines the target contributing types, whether via dialects orTypeContributor- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 已过时的方法 修饰符和类型 方法 说明 voidcontributeJavaTypeDescriptor(JavaTypeDescriptor descriptor)Add the JavaTypeDescriptor to theTypeConfiguration'sJavaTypeDescriptorRegistryvoidcontributeSqlTypeDescriptor(SqlTypeDescriptor descriptor)Add the JavaTypeDescriptor to theTypeConfiguration'sJavaTypeDescriptorRegistryvoidcontributeType(BasicType type)voidcontributeType(BasicType type, String... keys)已过时。(since 5.3) UsecontributeType(BasicType)instead.voidcontributeType(CompositeUserType type, String... keys)已过时。(since 5.3) UsecontributeType(BasicType)instead.voidcontributeType(UserType type, String... keys)已过时。(since 5.3) UsecontributeType(BasicType)instead.TypeConfigurationgetTypeConfiguration()
-
-
-
方法详细资料
-
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)
已过时。(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)
已过时。(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)
已过时。(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
-
-