Uses of Class
org.hibernate.cfg.Configuration
Packages that use Configuration
-
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 anAttributeConverterinstance to this configuration.Configuration.addAttributeConverter(AttributeConverter<?, ?> attributeConverter, boolean autoApply) Adds anAttributeConverterinstance to this configuration.Configuration.addAttributeConverter(Class<? extends AttributeConverter<?, ?>> attributeConverterClass) Adds anAttributeConverterto this configuration.Configuration.addAttributeConverter(Class<? extends AttributeConverter<?, ?>> attributeConverterClass, boolean autoApply) Adds anAttributeConverterto this configuration.Configuration.addAttributeConverter(ConverterDescriptor<?, ?> converterDescriptor) Adds anConverterDescriptorinstance to this configuration.Configuration.addAuxiliaryDatabaseObject(AuxiliaryDatabaseObject object) Adds anAuxiliaryDatabaseObjectto 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.Foois mapped by a filefoo/bar/Foo.hbm.xmlwhich can be resolved as a classpath resource.Configuration.addDirectory(File dir) Read all.hbm.xmlmapping documents from a directory tree.Configuration.addEntityNameResolver(EntityNameResolver entityNameResolver) Add anEntityNameResolverto 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.xmlmappings from a.jarfile.Read module-level metadata from the given module.Read module-level metadata for the named module.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) Supply aSqmFunctionDescriptorunder the given HQL registration name.Read mappings from aURL.Configuration.addXmlMapping(org.hibernate.boot.jaxb.spi.Binding<?> binding) Read mappings that were parsed usingConfiguration.getXmlMappingBinderAccess().Configuration.configure()Deprecated.Deprecated.Deprecated.Deprecated.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) Supply a function contributor to this configuration.Configuration.registerTypeContributor(TypeContributor typeContributor) Add aTypeContributorto 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 aColumnOrderingStrategyto be added to this configuration.Configuration.setCredentials(String user, String pass) Configuration.setCurrentTenantIdentifierResolver(CurrentTenantIdentifierResolver<?> currentTenantIdentifierResolver) Specify aCurrentTenantIdentifierResolverto be added to this configuration.Configuration.setCustomEntityDirtinessStrategy(CustomEntityDirtinessStrategy customEntityDirtinessStrategy) Specify aCustomEntityDirtinessStrategyto be added to this configuration.Configuration.setDatasource(String jndiName) Configuration.setEntityNotFoundDelegate(EntityNotFoundDelegate entityNotFoundDelegate) Specify a user-suppliedEntityNotFoundDelegateto be used to handle scenarios where an entity could not be located by specified id.Configuration.setImplicitNamingStrategy(ImplicitNamingStrategy implicitNamingStrategy) Set anImplicitNamingStrategyto use in this configuration.Configuration.setInterceptor(Interceptor interceptor) Supply theInterceptorshared by sessions opened from the built factory.Configuration.setJdbcUrl(String url) Configuration.setPhysicalNamingStrategy(PhysicalNamingStrategy physicalNamingStrategy) Set aPhysicalNamingStrategyto 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 aSessionFactoryObserverto be added to this configuration.Configuration.setSharedCacheMode(SharedCacheMode sharedCacheMode) Sets theSharedCacheModeto use.Configuration.setStatementInspector(StatementInspector statementInspector) Specify aStatementInspectorto be added to this configuration.Configuration.setTenantSchemaMapper(TenantSchemaMapper<?> tenantSchemaMapper) Specify aTenantSchemaMapperto be added to this configuration.Configuration.setTransactionType(PersistenceUnitTransactionType transactionType) Configuration.showSql(boolean showSql, boolean formatSql, boolean highlightSql)