public class HibernateMappingContextConfiguration extends org.hibernate.cfg.Configuration
A Configuration that uses a MappingContext to configure Hibernate
Modifiers | Name | Description |
---|---|---|
protected java.lang.String |
dataSourceName |
|
protected HibernateMappingContext |
hibernateMappingContext |
|
protected java.lang.String |
sessionFactoryBeanName |
Fields inherited from class | Fields |
---|---|
class org.hibernate.cfg.Configuration |
ARTEFACT_PROCESSING_ORDER |
Type | Name and description |
---|---|
org.hibernate.cfg.Configuration |
addAnnotatedClass(java.lang.Class annotatedClass) |
void |
addAnnotatedClasses(java.lang.Class<?>... annotatedClasses) Add the given annotated classes in a batch. |
void |
addPackages(java.lang.String... annotatedPackages) Add the given annotated packages in a batch. |
org.hibernate.SessionFactory |
buildSessionFactory() |
protected org.hibernate.boot.registry.BootstrapServiceRegistryBuilder |
createBootstrapServiceRegistryBuilder() Creates the org.hibernate.boot.registry.BootstrapServiceRegistryBuilder to use |
protected org.hibernate.boot.registry.StandardServiceRegistryBuilder |
createStandardServiceRegistryBuilder(org.hibernate.boot.registry.BootstrapServiceRegistry bootstrapServiceRegistry) Creates the standard service registry builder. |
org.hibernate.service.ServiceRegistry |
getServiceRegistry() |
protected boolean |
matchesFilter(org.springframework.core.type.classreading.MetadataReader reader, org.springframework.core.type.classreading.MetadataReaderFactory readerFactory) Check whether any of the configured entity type filters matches the current class descriptor contained in the metadata reader. |
protected void |
reset() |
void |
scanPackages(java.lang.String... packagesToScan) Perform Spring-based scanning for entity classes, registering them as annotated classes with this Configuration . |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setDataSourceConnectionSource(ConnectionSource<javax.sql.DataSource, DataSourceSettings> connectionSource) Set the target SQL javax.sql.DataSource |
void |
setDataSourceName(java.lang.String name) |
void |
setEventListeners(java.util.Map<java.lang.String, java.lang.Object> listeners) Default listeners. |
void |
setHibernateEventListeners(HibernateEventListeners listeners) User-specifiable extra listeners. |
void |
setHibernateMappingContext(HibernateMappingContext hibernateMappingContext) |
void |
setMetadataContributor(org.hibernate.boot.spi.MetadataContributor metadataContributor) |
void |
setSessionFactoryBeanName(java.lang.String name) |
Methods inherited from class | Name |
---|---|
class org.hibernate.cfg.Configuration |
org.hibernate.cfg.Configuration#getEntityNotFoundDelegate(), org.hibernate.cfg.Configuration#getCurrentTenantIdentifierResolver(), org.hibernate.cfg.Configuration#addProperties(java.util.Properties), org.hibernate.cfg.Configuration#configure(java.io.File), org.hibernate.cfg.Configuration#configure(org.w3c.dom.Document), org.hibernate.cfg.Configuration#configure(java.net.URL), org.hibernate.cfg.Configuration#configure(java.lang.String), org.hibernate.cfg.Configuration#configure(), org.hibernate.cfg.Configuration#getInterceptor(), org.hibernate.cfg.Configuration#setImplicitNamingStrategy(org.hibernate.boot.model.naming.ImplicitNamingStrategy), org.hibernate.cfg.Configuration#setPhysicalNamingStrategy(org.hibernate.boot.model.naming.PhysicalNamingStrategy), org.hibernate.cfg.Configuration#getStandardServiceRegistryBuilder(), org.hibernate.cfg.Configuration#registerTypeContributor(org.hibernate.boot.model.TypeContributor), org.hibernate.cfg.Configuration#addFile(java.lang.String), org.hibernate.cfg.Configuration#addFile(java.io.File), org.hibernate.cfg.Configuration#addCacheableFile(java.io.File), org.hibernate.cfg.Configuration#addCacheableFile(java.lang.String), org.hibernate.cfg.Configuration#addCacheableFileStrictly(java.io.File), org.hibernate.cfg.Configuration#addXML(java.lang.String), org.hibernate.cfg.Configuration#addDocument(org.w3c.dom.Document), org.hibernate.cfg.Configuration#addInputStream(java.io.InputStream), org.hibernate.cfg.Configuration#addResource(java.lang.String, java.lang.ClassLoader), org.hibernate.cfg.Configuration#addResource(java.lang.String), org.hibernate.cfg.Configuration#addAnnotatedClass(java.lang.Class), org.hibernate.cfg.Configuration#addPackage(java.lang.String), org.hibernate.cfg.Configuration#addJar(java.io.File), org.hibernate.cfg.Configuration#addDirectory(java.io.File), org.hibernate.cfg.Configuration#setInterceptor(org.hibernate.Interceptor), org.hibernate.cfg.Configuration#getEntityTuplizerFactory(), org.hibernate.cfg.Configuration#setEntityNotFoundDelegate(org.hibernate.proxy.EntityNotFoundDelegate), org.hibernate.cfg.Configuration#getSessionFactoryObserver(), org.hibernate.cfg.Configuration#setSessionFactoryObserver(org.hibernate.SessionFactoryObserver), org.hibernate.cfg.Configuration#setCurrentTenantIdentifierResolver(org.hibernate.context.spi.CurrentTenantIdentifierResolver), org.hibernate.cfg.Configuration#getSqlFunctions(), org.hibernate.cfg.Configuration#registerTypeOverride(org.hibernate.usertype.UserType, [Ljava.lang.String;), org.hibernate.cfg.Configuration#registerTypeOverride(org.hibernate.usertype.CompositeUserType, [Ljava.lang.String;), org.hibernate.cfg.Configuration#registerTypeOverride(org.hibernate.type.BasicType), org.hibernate.cfg.Configuration#addSqlFunction(java.lang.String, org.hibernate.dialect.function.SQLFunction), org.hibernate.cfg.Configuration#setSharedCacheMode(javax.persistence.SharedCacheMode), org.hibernate.cfg.Configuration#getNamedSQLQueries(), org.hibernate.cfg.Configuration#getSqlResultSetMappings(), org.hibernate.cfg.Configuration#getNamedQueries(), org.hibernate.cfg.Configuration#getNamedProcedureCallMap(), org.hibernate.cfg.Configuration#buildMappings(), org.hibernate.cfg.Configuration#mergeProperties(java.util.Properties), org.hibernate.cfg.Configuration#buildSessionFactory(org.hibernate.service.ServiceRegistry), org.hibernate.cfg.Configuration#buildSessionFactory(), org.hibernate.cfg.Configuration#getNamedEntityGraphs(), org.hibernate.cfg.Configuration#addAuxiliaryDatabaseObject(org.hibernate.boot.model.relational.AuxiliaryDatabaseObject), org.hibernate.cfg.Configuration#addAttributeConverter(java.lang.Class, boolean), org.hibernate.cfg.Configuration#addAttributeConverter(java.lang.Class), org.hibernate.cfg.Configuration#addAttributeConverter(org.hibernate.cfg.AttributeConverterDefinition), org.hibernate.cfg.Configuration#addAttributeConverter(javax.persistence.AttributeConverter), org.hibernate.cfg.Configuration#addAttributeConverter(javax.persistence.AttributeConverter, boolean), org.hibernate.cfg.Configuration#add(org.hibernate.internal.util.xml.XmlDocument), org.hibernate.cfg.Configuration#addClass(java.lang.Class), org.hibernate.cfg.Configuration#setProperty(java.lang.String, java.lang.String), org.hibernate.cfg.Configuration#getProperty(java.lang.String), org.hibernate.cfg.Configuration#getProperties(), org.hibernate.cfg.Configuration#setProperties(java.util.Properties), org.hibernate.cfg.Configuration#addURL(java.net.URL), org.hibernate.cfg.Configuration#wait(long, int), org.hibernate.cfg.Configuration#wait(long), org.hibernate.cfg.Configuration#wait(), org.hibernate.cfg.Configuration#equals(java.lang.Object), org.hibernate.cfg.Configuration#toString(), org.hibernate.cfg.Configuration#hashCode(), org.hibernate.cfg.Configuration#getClass(), org.hibernate.cfg.Configuration#notify(), org.hibernate.cfg.Configuration#notifyAll() |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Add the given annotated classes in a batch.
Add the given annotated packages in a batch.
Creates the org.hibernate.boot.registry.BootstrapServiceRegistryBuilder to use
Creates the standard service registry builder. Subclasses can override to customize the creation of the StandardServiceRegistry
bootstrapServiceRegistry
- The org.hibernate.boot.registry.BootstrapServiceRegistryCheck whether any of the configured entity type filters matches the current class descriptor contained in the metadata reader.
Perform Spring-based scanning for entity classes, registering them
as annotated classes with this Configuration
.
packagesToScan
- one or more Java package namesSet the target SQL javax.sql.DataSource
connectionSource
- The data source to useDefault listeners.
listeners
- the listenersUser-specifiable extra listeners.
listeners
- the listeners