类的使用
org.hibernate.boot.MetadataSources
-
使用MetadataSources的程序包 程序包 说明 org.hibernate.boot This package contains the contracts that make up the Hibernate native bootstrapping API (building a SessionFactory).org.hibernate.boot.cfgxml.spi org.hibernate.boot.internal org.hibernate.boot.model.process.internal org.hibernate.boot.model.process.spi org.hibernate.boot.spi org.hibernate.cfg This package defines APIs for configuring Hibernate, and classes for building the Hibernate configuration-time metamodel. -
-
org.hibernate.boot中MetadataSources的使用
返回MetadataSources的org.hibernate.boot中的方法 修饰符和类型 方法 说明 MetadataSourcesMetadataSources. addAnnotatedClass(Class annotatedClass)Read metadata from the annotations attached to the given class.MetadataSourcesMetadataSources. addAnnotatedClassName(String annotatedClassName)Read metadata from the annotations attached to the given class.MetadataSourcesMetadataSources. addCacheableFile(File file)Add a cached mapping file.MetadataSourcesMetadataSources. addCacheableFile(String path)SeeaddCacheableFile(java.io.File)for descriptionMetadataSourcesMetadataSources. addCacheableFileStrictly(File file)INTENDED FOR TESTSUITE USE ONLY!MetadataSourcesMetadataSources. addClass(Class entityClass)已过时。hbm.xml is a legacy mapping format now considered deprecated.MetadataSourcesMetadataSources. addDirectory(File dir)Read all mapping documents from a directory tree.MetadataSourcesMetadataSources. addDocument(Document document)已过时。since 5.0.MetadataSourcesMetadataSources. addFile(File file)Read mappings from a particular XML fileMetadataSourcesMetadataSources. addFile(String path)Read mappings from a particular XML fileMetadataSourcesMetadataSources. addInputStream(InputStream xmlInputStream)Read metadata from anInputStream.MetadataSourcesMetadataSources. addInputStream(InputStreamAccess xmlInputStreamAccess)Read metadata from anInputStreamaccessMetadataSourcesMetadataSources. addJar(File jar)Read all mappings from a jar file.MetadataSourcesMetadataSources. addPackage(Package packageRef)Read package-level metadata.MetadataSourcesMetadataSources. addPackage(String packageName)Read package-level metadata.MetadataSourcesMetadataSources. addResource(String name)Read mappings as an application resourceName (i.e. classpath lookup).MetadataSourcesMetadataSources. addURL(URL url)Read mappings from aURL -
org.hibernate.boot.cfgxml.spi中MetadataSources的使用
参数类型为MetadataSources的org.hibernate.boot.cfgxml.spi中的方法 修饰符和类型 方法 说明 voidMappingReference. apply(MetadataSources metadataSources) -
org.hibernate.boot.internal中MetadataSources的使用
参数类型为MetadataSources的org.hibernate.boot.internal中的构造器 构造器 说明 MetadataBuilderImpl(MetadataSources sources)MetadataBuilderImpl(MetadataSources sources, StandardServiceRegistry serviceRegistry) -
org.hibernate.boot.model.process.internal中MetadataSources的使用
参数类型为MetadataSources的org.hibernate.boot.model.process.internal中的方法 修饰符和类型 方法 说明 static ManagedResourcesImplManagedResourcesImpl. baseline(MetadataSources sources, BootstrapContext bootstrapContext) -
org.hibernate.boot.model.process.spi中MetadataSources的使用
参数类型为MetadataSources的org.hibernate.boot.model.process.spi中的方法 修饰符和类型 方法 说明 static MetadataImplementorMetadataBuildingProcess. build(MetadataSources sources, BootstrapContext bootstrapContext, MetadataBuildingOptions options)Unified single phase for MetadataSources->Metadata processstatic ManagedResourcesMetadataBuildingProcess. prepare(MetadataSources sources, BootstrapContext bootstrapContext)First step of 2-phase for MetadataSources->Metadata process -
org.hibernate.boot.spi中MetadataSources的使用
参数类型为MetadataSources的org.hibernate.boot.spi中的方法 修饰符和类型 方法 说明 voidMetadataSourcesContributor. contribute(MetadataSources metadataSources)Perform the process of contributing to MetadataSources.MetadataBuilderImplementorMetadataBuilderFactory. getMetadataBuilder(MetadataSources metadatasources, MetadataBuilderImplementor defaultBuilder)Creates aMetadataBuilderImplementor. -
org.hibernate.cfg中MetadataSources的使用
参数类型为MetadataSources的org.hibernate.cfg中的构造器 构造器 说明 Configuration(MetadataSources metadataSources)
-