Package | Description |
---|---|
org.hibernate.cfg |
This package defines APIs for configuring Hibernate, and classes
for building the Hibernate configuration-time metamodel.
|
org.hibernate.testing.env | |
org.hibernate.testing.junit4 |
Modifier and Type | Method and Description |
---|---|
Configuration |
Configuration.addAnnotatedClass(java.lang.Class annotatedClass)
Read metadata from the annotations associated with this class.
|
Configuration |
Configuration.addCacheableFile(java.io.File xmlFile)
Add a cached mapping file.
|
Configuration |
Configuration.addCacheableFile(java.lang.String xmlFile)
Add a cacheable mapping file.
|
Configuration |
Configuration.addCacheableFileStrictly(java.io.File xmlFile)
INTENDED FOR TESTSUITE USE ONLY!
Much like
addCacheableFile(File) except that here we will fail immediately if
the cache version cannot be found or used for whatever reason |
Configuration |
Configuration.addClass(java.lang.Class persistentClass)
Read a mapping as an application resource using the convention that a class
named foo.bar.Foo is mapped by a file foo/bar/Foo.hbm.xml
which can be resolved as a classpath resource.
|
Configuration |
Configuration.addDirectory(java.io.File dir)
Read all mapping documents from a directory tree.
|
Configuration |
Configuration.addDocument(org.w3c.dom.Document doc)
Deprecated.
Use addURL, addResource, addFile, etc. instead
|
Configuration |
Configuration.addFile(java.io.File xmlFile)
Read mappings from a particular XML file
|
Configuration |
Configuration.addFile(java.lang.String xmlFile)
Read mappings from a particular XML file
|
Configuration |
Configuration.addInputStream(java.io.InputStream xmlInputStream)
Read mappings from an
InputStream . |
Configuration |
Configuration.addJar(java.io.File jar)
Read all mappings from a jar file
Assumes that any file named *.hbm.xml is a mapping document.
|
Configuration |
Configuration.addPackage(java.lang.String packageName)
Read package-level metadata.
|
Configuration |
Configuration.addProperties(java.util.Properties properties)
Add the given properties to ours.
|
Configuration |
Configuration.addResource(java.lang.String resourceName)
Read mappings as a application resourceName (i.e.
|
Configuration |
Configuration.addResource(java.lang.String resourceName,
java.lang.ClassLoader classLoader)
Deprecated.
This form (accepting a ClassLoader) is no longer supported. Instead, add the ClassLoader
to the ClassLoaderService on the ServiceRegistry associated with this Configuration
|
Configuration |
Configuration.addURL(java.net.URL url)
Read mappings from a URL
|
Configuration |
Configuration.addXML(java.lang.String xml)
Deprecated.
No longer supported
|
protected Configuration |
ExternalSessionFactoryConfig.buildConfiguration() |
Configuration |
Configuration.configure()
Use the mappings and properties specified in an application resource named hibernate.cfg.xml.
|
Configuration |
Configuration.configure(org.w3c.dom.Document document)
Deprecated.
No longer supported.
|
Configuration |
Configuration.configure(java.io.File configFile)
Use the mappings and properties specified in the given application file.
|
Configuration |
Configuration.configure(java.lang.String resource)
Use the mappings and properties specified in the given application resource.
|
Configuration |
Configuration.configure(java.net.URL url)
Use the mappings and properties specified in the given document.
|
Configuration |
Configuration.mergeProperties(java.util.Properties properties)
Adds the incoming properties to the internal properties structure, as long as the internal structure does not
already contain an entry for the given key.
|
Configuration |
Configuration.registerTypeContributor(TypeContributor typeContributor) |
Configuration |
Configuration.registerTypeOverride(BasicType type)
Allows registration of a type into the type registry.
|
Configuration |
Configuration.registerTypeOverride(CompositeUserType type,
java.lang.String[] keys) |
Configuration |
Configuration.registerTypeOverride(UserType type,
java.lang.String[] keys) |
Configuration |
Configuration.setInterceptor(Interceptor interceptor)
Set the current
Interceptor |
Configuration |
Configuration.setProperties(java.util.Properties properties)
Specify a completely new set of properties
|
Configuration |
Configuration.setProperty(java.lang.String propertyName,
java.lang.String value)
Set a property value by name
|
Modifier and Type | Method and Description |
---|---|
static Configuration |
TestingDatabaseInfo.buildBaseConfiguration() |
Modifier and Type | Method and Description |
---|---|
protected Configuration |
BaseCoreFunctionalTestCase.buildConfiguration() |
protected Configuration |
BaseCoreFunctionalTestCase.configuration() |
protected Configuration |
BaseCoreFunctionalTestCase.constructAndConfigureConfiguration() |
protected Configuration |
BaseCoreFunctionalTestCase.constructConfiguration() |
Modifier and Type | Method and Description |
---|---|
protected void |
BaseCoreFunctionalTestCase.addMappings(Configuration configuration) |
protected void |
BaseCoreFunctionalTestCase.afterConfigurationBuilt(Configuration configuration) |
protected void |
BaseCoreFunctionalTestCase.applyCacheSettings(Configuration configuration) |
protected StandardServiceRegistryImpl |
BaseCoreFunctionalTestCase.buildServiceRegistry(BootstrapServiceRegistry bootRegistry,
Configuration configuration) |
protected void |
BaseCoreFunctionalTestCase.configure(Configuration configuration) |
static void |
Helper.createH2Schema(java.lang.String schemaName,
Configuration cfg) |
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.