Uses of Class
org.hibernate.cfg.Configuration
Packages that use Configuration
Package
Description
This package defines APIs for configuring Hibernate.
-
Uses of Configuration in org.hibernate.cfg
Methods in org.hibernate.cfg that return ConfigurationModifier and TypeMethodDescriptionConfiguration.addAnnotatedClass
(Class<?> annotatedClass) Read metadata from the annotations associated with this class.Configuration.addAnnotatedClasses
(Class... annotatedClasses) Read metadata from the annotations associated with the given classes.Configuration.addAttributeConverter
(AttributeConverter<?, ?> attributeConverter) Adds anAttributeConverter
instance to this configuration.Configuration.addAttributeConverter
(AttributeConverter<?, ?> attributeConverter, boolean autoApply) Adds anAttributeConverter
instance to this configuration.Configuration.addAttributeConverter
(Class<? extends AttributeConverter<?, ?>> attributeConverterClass) Adds anAttributeConverter
to this configuration.Configuration.addAttributeConverter
(Class<? extends AttributeConverter<?, ?>> attributeConverterClass, boolean autoApply) Adds anAttributeConverter
to this configuration.Configuration.addAttributeConverter
(ConverterDescriptor converterDescriptor) Adds anConverterDescriptor
instance to this configuration.Configuration.addAuxiliaryDatabaseObject
(AuxiliaryDatabaseObject object) Adds anAuxiliaryDatabaseObject
to this configuration.Configuration.addCacheableFile
(File xmlFile) Add a cacheable mapping file.Configuration.addCacheableFile
(String xmlFile) Add a cacheable mapping file.Configuration.addCacheableFileStrictly
(File xmlFile) INTENDED FOR TESTSUITE USE ONLY!Read a mapping as an application resource using the convention that a class namedfoo.bar.Foo
is mapped by a filefoo/bar/Foo.hbm.xml
which can be resolved as a classpath resource.Configuration.addDirectory
(File dir) Read all.hbm.xml
mapping documents from a directory tree.Configuration.addEntityNameResolver
(EntityNameResolver entityNameResolver) Add anEntityNameResolver
to this configuration.Read mappings from a particular XML file.Read mappings from a particular XML fileConfiguration.addInputStream
(InputStream xmlInputStream) Read mappings from anInputStream
.Read all.hbm.xml
mappings from a.jar
file.Configuration.addPackage
(String packageName) Read package-level metadata.Configuration.addPackages
(String... packageNames) Read package-level metadata.Configuration.addProperties
(Properties properties) Add the given properties to ours.Configuration.addResource
(String resourceName) Read mappings as an application resource name, that is, using a classpath lookup, trying different class loaders in turn.Configuration.addSqlFunction
(String functionName, SqmFunctionDescriptor function) Adds a function descriptor to this configuration.Read mappings from aURL
.Configuration.addXmlMapping
(Binding<?> binding) Read mappings that were parsed usinggetXmlMappingBinderAccess()
.Configuration.configure()
Use the mappings and properties specified in an application resource namedhibernate.cfg.xml
.Use the mappings and properties specified in the given application file.Use the mappings and properties specified in the given application resource.Use the mappings and properties specified in the given document.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.registerFunctionContributor
(FunctionContributor functionContributor) Add aFunctionContributor
to this configuration.Configuration.registerTypeContributor
(TypeContributor typeContributor) Add aTypeContributor
to this configuration.Configuration.registerTypeOverride
(BasicType<?> type) Register a type into the type registry, potentially replacing a previously registered type.Configuration.registerTypeOverride
(UserType<?> type, String[] keys) Register a type into the type registry, potentially replacing a previously registered type.Configuration.setColumnOrderingStrategy
(ColumnOrderingStrategy columnOrderingStrategy) Specify aCustomEntityDirtinessStrategy
to be added to this configuration.Configuration.setCredentials
(String user, String pass) Configuration.setCurrentTenantIdentifierResolver
(CurrentTenantIdentifierResolver<Object> currentTenantIdentifierResolver) Specify aCurrentTenantIdentifierResolver
to be added to this configuration.Configuration.setCustomEntityDirtinessStrategy
(CustomEntityDirtinessStrategy customEntityDirtinessStrategy) Specify aCustomEntityDirtinessStrategy
to be added to this configuration.Configuration.setDatasource
(String jndiName) Configuration.setEntityNotFoundDelegate
(EntityNotFoundDelegate entityNotFoundDelegate) Specify a user-suppliedEntityNotFoundDelegate
to be used to handle scenarios where an entity could not be located by specified id.Configuration.setImplicitNamingStrategy
(ImplicitNamingStrategy implicitNamingStrategy) Set anImplicitNamingStrategy
to use in this configuration.Configuration.setInterceptor
(Interceptor interceptor) Set the currentInterceptor
.Configuration.setJdbcUrl
(String url) Configuration.setPhysicalNamingStrategy
(PhysicalNamingStrategy physicalNamingStrategy) Set aPhysicalNamingStrategy
to use in this configuration.Configuration.setProperties
(Properties properties) Specify a completely new set of propertiesConfiguration.setProperty
(String propertyName, boolean value) Set a property to a boolean value by nameConfiguration.setProperty
(String propertyName, int value) Set a property to an integer value by nameConfiguration.setProperty
(String propertyName, Class<?> value) Set a property to a Java class nameConfiguration.setProperty
(String propertyName, Enum<?> value) Set a property to the name of a value of an enumerated typeConfiguration.setProperty
(String propertyName, String value) Set a property value by nameConfiguration.setSchemaExportAction
(Action action) Configuration.setSessionFactoryObserver
(SessionFactoryObserver sessionFactoryObserver) Specify aSessionFactoryObserver
to be added to this configuration.Configuration.setSharedCacheMode
(SharedCacheMode sharedCacheMode) Sets theSharedCacheMode
to use.Configuration.setStatementInspector
(StatementInspector statementInspector) Specify aStatementInspector
to be added to this configuration.Configuration.setTransactionType
(PersistenceUnitTransactionType transactionType) Configuration.showSql
(boolean showSql, boolean formatSql, boolean highlightSql) -
Uses of Configuration in org.hibernate.testing.env
Methods in org.hibernate.testing.env that return ConfigurationModifier and TypeMethodDescriptionstatic Configuration
TestingDatabaseInfo.buildBaseConfiguration()
-
Uses of Configuration in org.hibernate.testing.jdbc
Constructors in org.hibernate.testing.jdbc with parameters of type Configuration -
Uses of Configuration in org.hibernate.testing.junit4
Methods in org.hibernate.testing.junit4 that return ConfigurationModifier and TypeMethodDescriptionprotected Configuration
BaseCoreFunctionalTestCase.configuration()
protected Configuration
BaseCoreFunctionalTestCase.constructAndConfigureConfiguration
(BootstrapServiceRegistry bootstrapServiceRegistry) protected Configuration
BaseCoreFunctionalTestCase.constructConfiguration
(BootstrapServiceRegistry bootstrapServiceRegistry) Methods in org.hibernate.testing.junit4 with parameters of type ConfigurationModifier and TypeMethodDescriptionprotected 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
(String schemaName, Configuration cfg) Method parameters in org.hibernate.testing.junit4 with type arguments of type ConfigurationModifier and TypeMethodDescriptionprotected void
BaseCoreFunctionalTestCase.buildSessionFactory
(Consumer<Configuration> configurationAdapter) protected void
BaseCoreFunctionalTestCase.rebuildSessionFactory
(Consumer<Configuration> configurationAdapter)