类 MetadataBuilderImpl
- java.lang.Object
-
- org.hibernate.boot.internal.MetadataBuilderImpl
-
public class MetadataBuilderImpl extends Object implements MetadataBuilderImplementor, TypeContributions
- 作者:
- Steve Ebersole
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classMetadataBuilderImpl.MappingDefaultsImplstatic classMetadataBuilderImpl.MetadataBuildingOptionsImpl
-
构造器概要
构造器 构造器 说明 MetadataBuilderImpl(MetadataSources sources)MetadataBuilderImpl(MetadataSources sources, StandardServiceRegistry serviceRegistry)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 MetadataBuilderallowSpecjSyntax()MetadataBuilderapplyAccessType(AccessType implicitCacheAccessType)Specify the second-level access-type to be used by default for entities and collections that define second-level caching, but do not specify a granular access-type.MetadataBuilderapplyArchiveDescriptorFactory(ArchiveDescriptorFactory factory)Specify a particular ArchiveDescriptorFactory instance to use in scanning.MetadataBuilderapplyAttributeConverter(Class<? extends javax.persistence.AttributeConverter> attributeConverterClass)Adds an AttributeConverter by its Class.MetadataBuilderapplyAttributeConverter(Class<? extends javax.persistence.AttributeConverter> attributeConverterClass, boolean autoApply)Adds an AttributeConverter by its Class plus a boolean indicating whether to auto apply it.MetadataBuilderapplyAttributeConverter(javax.persistence.AttributeConverter attributeConverter)Adds an AttributeConverter instance.MetadataBuilderapplyAttributeConverter(javax.persistence.AttributeConverter attributeConverter, boolean autoApply)Adds an AttributeConverter instance, explicitly indicating whether to auto-apply.MetadataBuilderapplyAttributeConverter(AttributeConverterDefinition definition)Adds an AttributeConverter by an AttributeConverterDefinitionMetadataBuilderapplyAuxiliaryDatabaseObject(AuxiliaryDatabaseObject auxiliaryDatabaseObject)MetadataBuilderapplyBasicType(BasicType type)Specify an additional or overridden basic type mapping.MetadataBuilderapplyBasicType(BasicType type, String... keys)Specify an additional or overridden basic type mapping supplying specific registration keys.MetadataBuilderapplyBasicType(CompositeUserType type, String... keys)Register an additional or overridden composite custom type mapping.MetadataBuilderapplyBasicType(UserType type, String... keys)Register an additional or overridden custom type mapping.MetadataBuilderapplyCacheRegionDefinition(CacheRegionDefinition cacheRegionDefinition)Apply a CacheRegionDefinition to be applied to an entity, collection or query while building the Metadata object.MetadataBuilderapplyIdGenerationTypeInterpreter(IdGeneratorStrategyInterpreter interpreter)MetadataBuilderapplyImplicitCatalogName(String implicitCatalogName)Specify the implicit catalog name to apply to any unqualified database names.MetadataBuilderapplyImplicitNamingStrategy(ImplicitNamingStrategy namingStrategy)Specify the ImplicitNamingStrategy to use in building the Metadata.MetadataBuilderapplyImplicitSchemaName(String implicitSchemaName)Specify the implicit schema name to apply to any unqualified database names.MetadataBuilderapplyIndexView(org.jboss.jandex.IndexView jandexView)Allows specifying a specific Jandex index to use for reading annotation information.MetadataBuilderapplyPhysicalNamingStrategy(PhysicalNamingStrategy namingStrategy)Specify the PhysicalNamingStrategy to use in building the Metadata.MetadataBuilderapplyScanEnvironment(ScanEnvironment scanEnvironment)Consider this temporary as discussed onScanEnvironmentMetadataBuilderapplyScanner(Scanner scanner)Specify a particular Scanner instance to use.MetadataBuilderapplyScanOptions(ScanOptions scanOptions)Specify the options to be used in performing scanning.MetadataBuilderapplySharedCacheMode(javax.persistence.SharedCacheMode sharedCacheMode)Specify the second-level cache mode to be used.MetadataBuilderapplySourceProcessOrdering(MetadataSourceType... sourceTypes)Apply a specific ordering to the processing of sources.MetadataBuilderapplySqlFunction(String functionName, SQLFunction function)MetadataBuilderapplyTempClassLoader(ClassLoader tempClassLoader)Apply a ClassLoader for use while building the Metadata.MetadataBuilderapplyTypes(TypeContributor typeContributor)Apply an explicit TypeContributor (implicit application via ServiceLoader will still happen too)MetadataImplementorbuild()Actually build the metamodelvoidcontributeJavaTypeDescriptor(JavaTypeDescriptor descriptor)Add the JavaTypeDescriptor to theTypeConfiguration'sJavaTypeDescriptorRegistryvoidcontributeSqlTypeDescriptor(SqlTypeDescriptor descriptor)Add the JavaTypeDescriptor to theTypeConfiguration'sJavaTypeDescriptorRegistryvoidcontributeType(BasicType type)voidcontributeType(BasicType type, String... keys)voidcontributeType(CompositeUserType type, String[] keys)voidcontributeType(UserType type, String[] keys)MetadataBuilderenableExplicitDiscriminatorsForJoinedSubclassSupport(boolean supported)Should we process or ignore explicitly defined discriminators in the case of joined-subclasses.MetadataBuilderenableGlobalNationalizedCharacterDataSupport(boolean enabled)Should nationalized variants of character data be used in the database types?MetadataBuilderenableImplicitDiscriminatorsForJoinedSubclassSupport(boolean supported)Similarly toMetadataBuilder.enableExplicitDiscriminatorsForJoinedSubclassSupport(boolean), but here how should we treat joined inheritance when there is no explicitly defined discriminator annotations?MetadataBuilderenableImplicitForcingOfDiscriminatorsInSelect(boolean supported)For entities which do not explicitly say, should we force discriminators into SQL selects?MetadataBuilderenableNewIdentifierGeneratorSupport(boolean enabled)Should we enable support for the "new" (since 3.2) identifier generator mappings for handling:GenerationType.SEQUENCEGenerationType.IDENTITYGenerationType.TABLEGenerationType.AUTOBootstrapContextgetBootstrapContext()MetadataBuildingOptionsgetMetadataBuildingOptions()Get the options being collected on this MetadataBuilder that will ultimately be used in building the Metadata.TypeConfigurationgetTypeConfiguration()<T extends MetadataBuilder>
Tunwrap(Class<T> type)Allows unwrapping this builder as another, more specific type.
-
-
-
构造器详细资料
-
MetadataBuilderImpl
public MetadataBuilderImpl(MetadataSources sources)
-
MetadataBuilderImpl
public MetadataBuilderImpl(MetadataSources sources, StandardServiceRegistry serviceRegistry)
-
-
方法详细资料
-
applyImplicitSchemaName
public MetadataBuilder applyImplicitSchemaName(String implicitSchemaName)
从接口复制的说明:MetadataBuilderSpecify the implicit schema name to apply to any unqualified database names. Its default is defined by theAvailableSettings.DEFAULT_SCHEMAsetting if using property-based configuration.- 指定者:
applyImplicitSchemaName在接口中MetadataBuilder- 参数:
implicitSchemaName- The implicit schema name- 返回:
this, for method chaining- 另请参阅:
AvailableSettings.DEFAULT_SCHEMA
-
applyImplicitCatalogName
public MetadataBuilder applyImplicitCatalogName(String implicitCatalogName)
从接口复制的说明:MetadataBuilderSpecify the implicit catalog name to apply to any unqualified database names. Its default is defined by theAvailableSettings.DEFAULT_CATALOGsetting if using property-based configuration.- 指定者:
applyImplicitCatalogName在接口中MetadataBuilder- 参数:
implicitCatalogName- The implicit catalog name- 返回:
this, for method chaining- 另请参阅:
AvailableSettings.DEFAULT_CATALOG
-
applyImplicitNamingStrategy
public MetadataBuilder applyImplicitNamingStrategy(ImplicitNamingStrategy namingStrategy)
从接口复制的说明:MetadataBuilderSpecify the ImplicitNamingStrategy to use in building the Metadata. Its default is defined by theAvailableSettings.IMPLICIT_NAMING_STRATEGYsetting if using property-based configuration.- 指定者:
applyImplicitNamingStrategy在接口中MetadataBuilder- 参数:
namingStrategy- The ImplicitNamingStrategy to apply- 返回:
this, for method chaining- 另请参阅:
AvailableSettings.IMPLICIT_NAMING_STRATEGY
-
applyPhysicalNamingStrategy
public MetadataBuilder applyPhysicalNamingStrategy(PhysicalNamingStrategy namingStrategy)
从接口复制的说明:MetadataBuilderSpecify the PhysicalNamingStrategy to use in building the Metadata. Its default is defined by theAvailableSettings.PHYSICAL_NAMING_STRATEGYsetting if using property-based configuration.- 指定者:
applyPhysicalNamingStrategy在接口中MetadataBuilder- 参数:
namingStrategy- The PhysicalNamingStrategy to apply- 返回:
this, for method chaining- 另请参阅:
AvailableSettings.PHYSICAL_NAMING_STRATEGY
-
applySharedCacheMode
public MetadataBuilder applySharedCacheMode(javax.persistence.SharedCacheMode sharedCacheMode)
从接口复制的说明:MetadataBuilderSpecify the second-level cache mode to be used. This is the cache mode in terms of whether or not to cache. Its default is defined by thejavax.persistence.sharedCache.modesetting if using property-based configuration.- 指定者:
applySharedCacheMode在接口中MetadataBuilder- 参数:
sharedCacheMode- The cache mode.- 返回:
this, for method chaining- 另请参阅:
MetadataBuilder.applyAccessType(org.hibernate.cache.spi.access.AccessType)
-
applyAccessType
public MetadataBuilder applyAccessType(AccessType implicitCacheAccessType)
从接口复制的说明:MetadataBuilderSpecify the second-level access-type to be used by default for entities and collections that define second-level caching, but do not specify a granular access-type. Its default is defined by theAvailableSettings.DEFAULT_CACHE_CONCURRENCY_STRATEGYsetting if using property-based configuration.- 指定者:
applyAccessType在接口中MetadataBuilder- 参数:
implicitCacheAccessType- The access-type to use as default.- 返回:
this, for method chaining- 另请参阅:
AvailableSettings.DEFAULT_CACHE_CONCURRENCY_STRATEGY,MetadataBuilder.applySharedCacheMode(javax.persistence.SharedCacheMode)
-
applyIndexView
public MetadataBuilder applyIndexView(org.jboss.jandex.IndexView jandexView)
从接口复制的说明:MetadataBuilderAllows specifying a specific Jandex index to use for reading annotation information. It is important to understand that if a Jandex index is passed in, it is expected that this Jandex index already contains all entries for all classes. No additional indexing will be done in this case. NOTE : Here for future expansion. At the moment the passed Jandex index is not used.- 指定者:
applyIndexView在接口中MetadataBuilder- 参数:
jandexView- The Jandex index to use.- 返回:
this, for method chaining
-
applyScanOptions
public MetadataBuilder applyScanOptions(ScanOptions scanOptions)
从接口复制的说明:MetadataBuilderSpecify the options to be used in performing scanning.- 指定者:
applyScanOptions在接口中MetadataBuilder- 参数:
scanOptions- The scan options.- 返回:
this, for method chaining- 另请参阅:
AvailableSettings.SCANNER_DISCOVERY
-
applyScanEnvironment
public MetadataBuilder applyScanEnvironment(ScanEnvironment scanEnvironment)
从接口复制的说明:MetadataBuilderConsider this temporary as discussed onScanEnvironment- 指定者:
applyScanEnvironment在接口中MetadataBuilder- 参数:
scanEnvironment- The environment for scanning- 返回:
this, for method chaining
-
applyScanner
public MetadataBuilder applyScanner(Scanner scanner)
从接口复制的说明:MetadataBuilderSpecify a particular Scanner instance to use. Its default is defined by theAvailableSettings.SCANNERsetting if using property-based configuration.- 指定者:
applyScanner在接口中MetadataBuilder- 参数:
scanner- The scanner to use.- 返回:
this, for method chaining- 另请参阅:
AvailableSettings.SCANNER
-
applyArchiveDescriptorFactory
public MetadataBuilder applyArchiveDescriptorFactory(ArchiveDescriptorFactory factory)
从接口复制的说明:MetadataBuilderSpecify a particular ArchiveDescriptorFactory instance to use in scanning. Its default is defined by theAvailableSettings.SCANNER_ARCHIVE_INTERPRETERsetting if using property-based configuration.- 指定者:
applyArchiveDescriptorFactory在接口中MetadataBuilder- 参数:
factory- The ArchiveDescriptorFactory to use.- 返回:
this, for method chaining- 另请参阅:
AvailableSettings.SCANNER_ARCHIVE_INTERPRETER
-
enableExplicitDiscriminatorsForJoinedSubclassSupport
public MetadataBuilder enableExplicitDiscriminatorsForJoinedSubclassSupport(boolean supported)
从接口复制的说明:MetadataBuilderShould we process or ignore explicitly defined discriminators in the case of joined-subclasses. The legacy behavior of Hibernate was to ignore the discriminator annotations because Hibernate (unlike some providers) does not need discriminators to determine the concrete type when it comes to joined inheritance. However, for portability reasons we do now allow using explicit discriminators along with joined inheritance. It is configurable though to support legacy apps. Its default is defined by theAvailableSettings.IGNORE_EXPLICIT_DISCRIMINATOR_COLUMNS_FOR_JOINED_SUBCLASSsetting if using property-based configuration.- 指定者:
enableExplicitDiscriminatorsForJoinedSubclassSupport在接口中MetadataBuilder- 参数:
supported- Should processing (not ignoring) explicit discriminators be enabled?- 返回:
this, for method chaining- 另请参阅:
AvailableSettings.IGNORE_EXPLICIT_DISCRIMINATOR_COLUMNS_FOR_JOINED_SUBCLASS
-
enableImplicitDiscriminatorsForJoinedSubclassSupport
public MetadataBuilder enableImplicitDiscriminatorsForJoinedSubclassSupport(boolean supported)
从接口复制的说明:MetadataBuilderSimilarly toMetadataBuilder.enableExplicitDiscriminatorsForJoinedSubclassSupport(boolean), but here how should we treat joined inheritance when there is no explicitly defined discriminator annotations? If enabled, we will handle joined inheritance with no explicit discriminator annotations by implicitly creating one (following the JPA implicit naming rules). Again the premise here is JPA portability, bearing in mind that some JPA provider need these discriminators. Its default is defined by theAvailableSettings.IMPLICIT_DISCRIMINATOR_COLUMNS_FOR_JOINED_SUBCLASSsetting if using property-based configuration.- 指定者:
enableImplicitDiscriminatorsForJoinedSubclassSupport在接口中MetadataBuilder- 参数:
supported- Should we implicitly create discriminator for joined inheritance if one is not explicitly mentioned?- 返回:
this, for method chaining- 另请参阅:
AvailableSettings.IMPLICIT_DISCRIMINATOR_COLUMNS_FOR_JOINED_SUBCLASS
-
enableImplicitForcingOfDiscriminatorsInSelect
public MetadataBuilder enableImplicitForcingOfDiscriminatorsInSelect(boolean supported)
从接口复制的说明:MetadataBuilderFor entities which do not explicitly say, should we force discriminators into SQL selects? The (historical) default isfalseIts default is defined by theAvailableSettings.FORCE_DISCRIMINATOR_IN_SELECTS_BY_DEFAULTsetting if using property-based configuration.- 指定者:
enableImplicitForcingOfDiscriminatorsInSelect在接口中MetadataBuilder- 参数:
supported-trueindicates we will force the discriminator into the select;falseindicates we will not.- 返回:
this, for method chaining- 另请参阅:
AvailableSettings.FORCE_DISCRIMINATOR_IN_SELECTS_BY_DEFAULT
-
enableGlobalNationalizedCharacterDataSupport
public MetadataBuilder enableGlobalNationalizedCharacterDataSupport(boolean enabled)
从接口复制的说明:MetadataBuilderShould nationalized variants of character data be used in the database types? For example, shouldNVARCHARbe used instead ofVARCHAR?NCLOBinstead ofCLOB? Its default is defined by theAvailableSettings.USE_NATIONALIZED_CHARACTER_DATAsetting if using property-based configuration.- 指定者:
enableGlobalNationalizedCharacterDataSupport在接口中MetadataBuilder- 参数:
enabled-truesays to use nationalized variants;falsesays to use the non-nationalized variants.- 返回:
this, for method chaining- 另请参阅:
AvailableSettings.USE_NATIONALIZED_CHARACTER_DATA
-
applyBasicType
public MetadataBuilder applyBasicType(BasicType type)
从接口复制的说明:MetadataBuilderSpecify an additional or overridden basic type mapping.- 指定者:
applyBasicType在接口中MetadataBuilder- 参数:
type- The type addition or override.- 返回:
this, for method chaining
-
applyBasicType
public MetadataBuilder applyBasicType(BasicType type, String... keys)
从接口复制的说明:MetadataBuilderSpecify an additional or overridden basic type mapping supplying specific registration keys.- 指定者:
applyBasicType在接口中MetadataBuilder- 参数:
type- The type addition or override.keys- The keys under which to register the basic type.- 返回:
this, for method chaining
-
applyBasicType
public MetadataBuilder applyBasicType(UserType type, String... keys)
从接口复制的说明:MetadataBuilderRegister an additional or overridden custom type mapping.- 指定者:
applyBasicType在接口中MetadataBuilder- 参数:
type- The custom typekeys- The keys under which to register the custom type.- 返回:
this, for method chaining
-
applyBasicType
public MetadataBuilder applyBasicType(CompositeUserType type, String... keys)
从接口复制的说明:MetadataBuilderRegister an additional or overridden composite custom type mapping.- 指定者:
applyBasicType在接口中MetadataBuilder- 参数:
type- The composite custom typekeys- The keys under which to register the composite custom type.- 返回:
this, for method chaining
-
applyTypes
public MetadataBuilder applyTypes(TypeContributor typeContributor)
从接口复制的说明:MetadataBuilderApply an explicit TypeContributor (implicit application via ServiceLoader will still happen too)- 指定者:
applyTypes在接口中MetadataBuilder- 参数:
typeContributor- The contributor to apply- 返回:
this, for method chaining
-
contributeType
public void contributeType(BasicType type)
- 指定者:
contributeType在接口中TypeContributions
-
contributeType
public void contributeType(BasicType type, String... keys)
- 指定者:
contributeType在接口中TypeContributions
-
contributeType
public void contributeType(UserType type, String[] keys)
- 指定者:
contributeType在接口中TypeContributions
-
contributeType
public void contributeType(CompositeUserType type, String[] keys)
- 指定者:
contributeType在接口中TypeContributions
-
contributeJavaTypeDescriptor
public void contributeJavaTypeDescriptor(JavaTypeDescriptor descriptor)
从接口复制的说明:TypeContributionsAdd the JavaTypeDescriptor to theTypeConfiguration'sJavaTypeDescriptorRegistry
-
contributeSqlTypeDescriptor
public void contributeSqlTypeDescriptor(SqlTypeDescriptor descriptor)
从接口复制的说明:TypeContributionsAdd the JavaTypeDescriptor to theTypeConfiguration'sJavaTypeDescriptorRegistry- 指定者:
contributeSqlTypeDescriptor在接口中TypeContributions
-
getTypeConfiguration
public TypeConfiguration getTypeConfiguration()
- 指定者:
getTypeConfiguration在接口中TypeContributions
-
applyCacheRegionDefinition
public MetadataBuilder applyCacheRegionDefinition(CacheRegionDefinition cacheRegionDefinition)
从接口复制的说明:MetadataBuilderApply a CacheRegionDefinition to be applied to an entity, collection or query while building the Metadata object.- 指定者:
applyCacheRegionDefinition在接口中MetadataBuilder- 参数:
cacheRegionDefinition- The cache region definition to apply- 返回:
this, for method chaining
-
applyTempClassLoader
public MetadataBuilder applyTempClassLoader(ClassLoader tempClassLoader)
从接口复制的说明:MetadataBuilderApply a ClassLoader for use while building the Metadata. Ideally we should avoid accessing ClassLoaders when perform 1st phase of bootstrap. This is a ClassLoader that can be used in cases when we have to. IN EE managed environments, this is the ClassLoader mandated byPersistenceUnitInfo.getNewTempClassLoader(). This ClassLoader is thrown away by the container afterwards. The idea being that the Class can still be enhanced in the application ClassLoader. In other environments, pass a ClassLoader that performs the same function if desired.- 指定者:
applyTempClassLoader在接口中MetadataBuilder- 参数:
tempClassLoader- ClassLoader for use during building the Metadata- 返回:
this, for method chaining
-
applySourceProcessOrdering
public MetadataBuilder applySourceProcessOrdering(MetadataSourceType... sourceTypes)
从接口复制的说明:MetadataBuilderApply a specific ordering to the processing of sources. Note that unlike most of the methods on this contract that deal with multiple values internally, this one *replaces* any already set (its more a setter) instead of adding to. Its default is defined by theAvailableSettings.ARTIFACT_PROCESSING_ORDERsetting if using property-based configuration.- 指定者:
applySourceProcessOrdering在接口中MetadataBuilder- 参数:
sourceTypes- The types, in the order they should be processed- 返回:
thisfor method chaining- 另请参阅:
AvailableSettings.ARTIFACT_PROCESSING_ORDER
-
allowSpecjSyntax
public MetadataBuilder allowSpecjSyntax()
-
applySqlFunction
public MetadataBuilder applySqlFunction(String functionName, SQLFunction function)
- 指定者:
applySqlFunction在接口中MetadataBuilder
-
applyAuxiliaryDatabaseObject
public MetadataBuilder applyAuxiliaryDatabaseObject(AuxiliaryDatabaseObject auxiliaryDatabaseObject)
- 指定者:
applyAuxiliaryDatabaseObject在接口中MetadataBuilder
-
applyAttributeConverter
public MetadataBuilder applyAttributeConverter(AttributeConverterDefinition definition)
从接口复制的说明:MetadataBuilderAdds an AttributeConverter by an AttributeConverterDefinition- 指定者:
applyAttributeConverter在接口中MetadataBuilder- 参数:
definition- The definition- 返回:
thisfor method chaining
-
applyAttributeConverter
public MetadataBuilder applyAttributeConverter(Class<? extends javax.persistence.AttributeConverter> attributeConverterClass)
从接口复制的说明:MetadataBuilderAdds an AttributeConverter by its Class.- 指定者:
applyAttributeConverter在接口中MetadataBuilder- 参数:
attributeConverterClass- The AttributeConverter class.- 返回:
thisfor method chaining
-
applyAttributeConverter
public MetadataBuilder applyAttributeConverter(Class<? extends javax.persistence.AttributeConverter> attributeConverterClass, boolean autoApply)
从接口复制的说明:MetadataBuilderAdds an AttributeConverter by its Class plus a boolean indicating whether to auto apply it.- 指定者:
applyAttributeConverter在接口中MetadataBuilder- 参数:
attributeConverterClass- The AttributeConverter class.autoApply- Should the AttributeConverter be auto applied to property types as specified by its "entity attribute" parameterized type?- 返回:
thisfor method chaining- 另请参阅:
AttributeConverterDefinition.from(Class, boolean)
-
applyAttributeConverter
public MetadataBuilder applyAttributeConverter(javax.persistence.AttributeConverter attributeConverter)
从接口复制的说明:MetadataBuilderAdds an AttributeConverter instance.- 指定者:
applyAttributeConverter在接口中MetadataBuilder- 参数:
attributeConverter- The AttributeConverter instance.- 返回:
thisfor method chaining- 另请参阅:
AttributeConverterDefinition.from(AttributeConverter)
-
applyAttributeConverter
public MetadataBuilder applyAttributeConverter(javax.persistence.AttributeConverter attributeConverter, boolean autoApply)
从接口复制的说明:MetadataBuilderAdds an AttributeConverter instance, explicitly indicating whether to auto-apply.- 指定者:
applyAttributeConverter在接口中MetadataBuilder- 参数:
attributeConverter- The AttributeConverter instance.autoApply- Should the AttributeConverter be auto applied to property types as specified by its "entity attribute" parameterized type?- 返回:
thisfor method chaining- 另请参阅:
AttributeConverterDefinition.from(AttributeConverter, boolean)
-
enableNewIdentifierGeneratorSupport
public MetadataBuilder enableNewIdentifierGeneratorSupport(boolean enabled)
从接口复制的说明:MetadataBuilderShould we enable support for the "new" (since 3.2) identifier generator mappings for handling:GenerationType.SEQUENCEGenerationType.IDENTITYGenerationType.TABLEGenerationType.AUTO
AvailableSettings.USE_NEW_ID_GENERATOR_MAPPINGSsetting if using property-based configuration.- 指定者:
enableNewIdentifierGeneratorSupport在接口中MetadataBuilder- 参数:
enabled-trueto enable;falseto disable; don't call for default.- 返回:
this, for method chaining- 另请参阅:
AvailableSettings.USE_NEW_ID_GENERATOR_MAPPINGS
-
applyIdGenerationTypeInterpreter
public MetadataBuilder applyIdGenerationTypeInterpreter(IdGeneratorStrategyInterpreter interpreter)
-
unwrap
public <T extends MetadataBuilder> T unwrap(Class<T> type)
从接口复制的说明:MetadataBuilderAllows unwrapping this builder as another, more specific type.- 指定者:
unwrap在接口中MetadataBuilder- 返回:
- The unwrapped builder.
-
build
public MetadataImplementor build()
从接口复制的说明:MetadataBuilderActually build the metamodel- 指定者:
build在接口中MetadataBuilder- 返回:
- The built metadata.
-
getBootstrapContext
public BootstrapContext getBootstrapContext()
-
getMetadataBuildingOptions
public MetadataBuildingOptions getMetadataBuildingOptions()
从接口复制的说明:MetadataBuilderImplementorGet the options being collected on this MetadataBuilder that will ultimately be used in building the Metadata.- 指定者:
getMetadataBuildingOptions在接口中MetadataBuilderImplementor- 返回:
- The current building options
-
-