Configuration |
Configuration.addAnnotatedClass(Class annotatedClass) |
Read metadata from the annotations associated with this class.
|
Configuration |
Configuration.addCacheableFile(File xmlFile) |
Add a cacheable mapping file.
|
Configuration |
Configuration.addCacheableFile(String xmlFile) |
Add a cacheable mapping file.
|
Configuration |
Configuration.addCacheableFileStrictly(File xmlFile) |
INTENDED FOR TESTSUITE USE ONLY!
|
Configuration |
Configuration.addClass(Class entityClass) |
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(File dir) |
Read all .hbm.xml mapping documents from a directory tree.
|
Configuration |
Configuration.addFile(File xmlFile) |
Read mappings from a particular XML file.
|
Configuration |
Configuration.addFile(String xmlFile) |
Read mappings from a particular XML file
|
Configuration |
Configuration.addInputStream(InputStream xmlInputStream) |
|
Configuration |
Configuration.addJar(File jar) |
Read all .hbm.xml mappings from a .jar file.
|
Configuration |
Configuration.addPackage(String packageName) |
Read package-level metadata.
|
Configuration |
Configuration.addProperties(Properties properties) |
Add the given properties to ours.
|
Configuration |
Configuration.addResource(String resourceName) |
Read mappings as an application resource name, that is, using a
classpath lookup, trying
different class loaders in turn.
|
Configuration |
Configuration.addURL(URL url) |
Read mappings from a URL .
|
Configuration |
Configuration.addXmlMapping(Binding<?> binding) |
|
Configuration |
Configuration.configure() |
Use the mappings and properties specified in an application resource named
hibernate.cfg.xml .
|
Configuration |
Configuration.configure(File configFile) |
Use the mappings and properties specified in the given application file.
|
Configuration |
Configuration.configure(String resource) |
Use the mappings and properties specified in the given application resource.
|
Configuration |
Configuration.configure(URL url) |
Use the mappings and properties specified in the given document.
|
Configuration |
Configuration.mergeProperties(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) |
Register a type into the type registry,
potentially replacing a previously registered type.
|
Configuration |
Configuration.registerTypeOverride(UserType<?> type,
String[] keys) |
|
Configuration |
Configuration.setInterceptor(Interceptor interceptor) |
|
Configuration |
Configuration.setProperties(Properties properties) |
Specify a completely new set of properties
|
Configuration |
Configuration.setProperty(String propertyName,
String value) |
Set a property value by name
|