Uses of Class
org.hibernate.boot.MetadataSources
Packages that use MetadataSources
Package
Description
This package contains the interfaces that make up the bootstrap API
for Hibernate.
An SPI service for processing and handling
cfg.xml
files.Defines an SPI used during the process of transforming
mapping sources into
the
Metadata
reference.A range of SPIs allowing integration with—and customization of—the process of building metadata.
This package defines APIs for configuring Hibernate.
Standard model for Hibernate's legacy Animal model used in HQL testing
-
Uses of MetadataSources in org.hibernate.boot
Methods in org.hibernate.boot that return MetadataSourcesModifier and TypeMethodDescriptionMetadataSources.addAnnotatedClass
(Class<?> annotatedClass) Read metadata from the annotations attached to the given class.MetadataSources.addAnnotatedClasses
(Class<?>... annotatedClasses) Vararg form ofaddAnnotatedClass(Class)
.MetadataSources.addAnnotatedClassName
(String annotatedClassName) Read metadata from the annotations attached to the given class.MetadataSources.addAnnotatedClassNames
(String... annotatedClassNames) Vararg form ofaddAnnotatedClassName(String)
.MetadataSources.addCacheableFile
(File file) Add a cached mapping file.MetadataSources.addCacheableFile
(File file, File cacheDirectory) Add a cached mapping file.MetadataSources.addCacheableFile
(String path) Add acached mapping file
.MetadataSources.addCacheableFile
(String path, File cacheDirectory) Add acached mapping file
.MetadataSources.addCacheableFileStrictly
(File file) INTENDED FOR TESTSUITE USE ONLY!MetadataSources.addCacheableFileStrictly
(File file, File cacheDir) INTENDED FOR TESTSUITE USE ONLY!MetadataSources.addDirectory
(File dir) Read all.hbm.xml
mapping documents from a directory tree.Read mappings from a particular XML file.Read mappings from a particular XML file.MetadataSources.addHbmXmlBinding
(Binding<JaxbHbmHibernateMapping> binding) MetadataSources.addInputStream
(InputStream xmlInputStream) Read metadata from anInputStream
.MetadataSources.addInputStream
(InputStreamAccess xmlInputStreamAccess) Read metadata from anInputStream
accessRead all.hbm.xml
mappings from a jar file.MetadataSources.addMappingXmlBinding
(Binding<JaxbEntityMappingsImpl> binding) Add a binding for mapping.xsd documentMetadataSources.addPackage
(Package packageRef) Read package-level metadata.MetadataSources.addPackage
(String packageName) Read package-level metadata.MetadataSources.addQueryImport
(String importedName, Class<?> target) MetadataSources.addResource
(String name) Read mappings as an application resourceName (i.e.Read mappings from aURL
MetadataSources.addXmlBinding
(Binding<?> binding) Add XML mapping bindings created from an arbitrary source by the binder. -
Uses of MetadataSources in org.hibernate.boot.cfgxml.spi
Methods in org.hibernate.boot.cfgxml.spi with parameters of type MetadataSources -
Uses of MetadataSources in org.hibernate.boot.internal
Constructors in org.hibernate.boot.internal with parameters of type MetadataSourcesModifierConstructorDescriptionMetadataBuilderImpl
(MetadataSources sources) MetadataBuilderImpl
(MetadataSources sources, StandardServiceRegistry serviceRegistry) -
Uses of MetadataSources in org.hibernate.boot.model.process.internal
Methods in org.hibernate.boot.model.process.internal with parameters of type MetadataSourcesModifier and TypeMethodDescriptionstatic ManagedResourcesImpl
ManagedResourcesImpl.baseline
(MetadataSources sources, BootstrapContext bootstrapContext) -
Uses of MetadataSources in org.hibernate.boot.model.process.spi
Methods in org.hibernate.boot.model.process.spi with parameters of type MetadataSourcesModifier and TypeMethodDescriptionstatic MetadataImplementor
MetadataBuildingProcess.build
(MetadataSources sources, BootstrapContext bootstrapContext, MetadataBuildingOptions options) Unified single phase for MetadataSources to Metadata processstatic ManagedResources
MetadataBuildingProcess.prepare
(MetadataSources sources, BootstrapContext bootstrapContext) First step of two-phase for MetadataSources to Metadata process -
Uses of MetadataSources in org.hibernate.boot.spi
Methods in org.hibernate.boot.spi with parameters of type MetadataSourcesModifier and TypeMethodDescriptionvoid
MetadataSourcesContributor.contribute
(MetadataSources metadataSources) Perform the process of contributing to theMetadataSources
.MetadataBuilderFactory.getMetadataBuilder
(MetadataSources metadatasources, MetadataBuilderImplementor defaultBuilder) Creates aMetadataBuilderImplementor
. -
Uses of MetadataSources in org.hibernate.cfg
Constructors in org.hibernate.cfg with parameters of type MetadataSourcesModifierConstructorDescriptionConfiguration
(MetadataSources metadataSources) Create a new instance, using the givenMetadataSources
, and aBootstrapServiceRegistry
obtained from theMetadataSources
. -
Uses of MetadataSources in org.hibernate.testing.junit4
Methods in org.hibernate.testing.junit4 with parameters of type MetadataSourcesModifier and TypeMethodDescriptionprotected void
BaseNonConfigCoreFunctionalTestCase.afterMetadataSourcesApplied
(MetadataSources metadataSources) protected void
BaseNonConfigCoreFunctionalTestCase.applyMetadataSources
(MetadataSources sources) -
Uses of MetadataSources in org.hibernate.testing.orm.domain
Methods in org.hibernate.testing.orm.domain with parameters of type MetadataSourcesModifier and TypeMethodDescriptionvoid
AbstractDomainModelDescriptor.applyDomainModel
(MetadataSources sources) void
DomainModelDescriptor.applyDomainModel
(MetadataSources sources) Apply the model classes to the given MetadataSources -
Uses of MetadataSources in org.hibernate.testing.orm.domain.animal
Methods in org.hibernate.testing.orm.domain.animal with parameters of type MetadataSourcesModifier and TypeMethodDescriptionstatic void
AnimalDomainModel.applyContactsModel
(MetadataSources sources) -
Uses of MetadataSources in org.hibernate.testing.orm.domain.contacts
Methods in org.hibernate.testing.orm.domain.contacts with parameters of type MetadataSourcesModifier and TypeMethodDescriptionstatic void
ContactsDomainModel.applyContactsModel
(MetadataSources sources) -
Uses of MetadataSources in org.hibernate.testing.orm.domain.retail
Methods in org.hibernate.testing.orm.domain.retail with parameters of type MetadataSourcesModifier and TypeMethodDescriptionstatic void
RetailDomainModel.applyRetailModel
(MetadataSources sources) -
Uses of MetadataSources in org.hibernate.testing.orm.junit
Methods in org.hibernate.testing.orm.junit with parameters of type MetadataSourcesModifier and TypeMethodDescriptionprotected void
BaseSessionFactoryFunctionalTest.applyMetadataSources
(MetadataSources metadataSources)