Java org.hibernate.cfg Configuration fields, constructors, methods, implement or subclass

Example usage for Java org.hibernate.cfg Configuration fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.hibernate.cfg Configuration.

The text is from its open source code.

Subclass

org.hibernate.cfg.Configuration has subclasses.
Click this link to see all its subclasses.

Constructor

Method

ConfigurationaddAnnotatedClass(Class annotatedClass)
Read metadata from the annotations associated with this class.
voidaddAuxiliaryDatabaseObject(AuxiliaryDatabaseObject object)
ConfigurationaddCacheableFile(File xmlFile)
Add a cached mapping file.
ConfigurationaddCacheableFile(String xmlFile)
Add a cacheable mapping file.
ConfigurationaddClass(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.
ConfigurationaddDirectory(File dir)
Read all mapping documents from a directory tree.
ConfigurationaddFile(String xmlFile)
Read mappings from a particular XML file
ConfigurationaddFile(File xmlFile)
Read mappings from a particular XML file
ConfigurationaddInputStream(InputStream xmlInputStream)
Read mappings from an java.io.InputStream .
ConfigurationaddJar(File jar)
Read all mappings from a jar file

Assumes that any file named *.hbm.xml is a mapping document.

ConfigurationaddPackage(String packageName)
Read package-level metadata.
ConfigurationaddProperties(Properties properties)
Add the given properties to ours.
ConfigurationaddResource(String resourceName)
Read mappings as a application resourceName (i.e.
ConfigurationaddResource(String resourceName, ClassLoader classLoader)
voidaddSqlFunction(String functionName, SQLFunction function)
ConfigurationaddURL(URL url)
Read mappings from a URL
ConfigurationaddXML(String xml)
voidbuildMappings()
SessionFactorybuildSessionFactory()
Create a SessionFactory using the properties and mappings in this configuration.
SessionFactorybuildSessionFactory(ServiceRegistry serviceRegistry)
Create a SessionFactory using the properties and mappings in this configuration.
Configurationconfigure(String resource)
Use the mappings and properties specified in the given application resource.
Configurationconfigure(URL url)
Use the mappings and properties specified in the given document.
Configurationconfigure(File configFile)
Use the mappings and properties specified in the given application file.
Configurationconfigure(org.w3c.dom.Document document)
Configurationconfigure()
Use the mappings and properties specified in an application resource named hibernate.cfg.xml.
EntityTuplizerFactorygetEntityTuplizerFactory()
MapgetNamedQueries()
MapgetNamedSQLQueries()
PropertiesgetProperties()
Get all properties
StringgetProperty(String propertyName)
Get a property value by name
ConfigurationmergeProperties(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.
ConfigurationregisterTypeOverride(UserType type, String[] keys)
ConfigurationregisterTypeOverride(CompositeUserType type, String[] keys)
ConfigurationregisterTypeOverride(BasicType type)
Allows registration of a type into the type registry.
voidsetImplicitNamingStrategy(ImplicitNamingStrategy implicitNamingStrategy)
ConfigurationsetInterceptor(Interceptor interceptor)
Set the current Interceptor
voidsetPhysicalNamingStrategy(PhysicalNamingStrategy physicalNamingStrategy)
ConfigurationsetProperties(Properties properties)
Specify a completely new set of properties
ConfigurationsetProperty(String propertyName, String value)
Set a property value by name
voidsetSessionFactoryObserver(SessionFactoryObserver sessionFactoryObserver)