public class HibernateMappingContextConfiguration extends org.springframework.context.annotation.Configuration implements org.springframework.context.ApplicationContextAware
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 | 
                            
| Type Params | Return Type | Name and description | 
|---|---|---|
 | 
                            public org.springframework.context.annotation.Configuration | 
                            addAnnotatedClass(java.lang.Class annotatedClass) | 
                        
 | 
                            public void | 
                            addAnnotatedClasses(java.lang.Class<?> annotatedClasses)Add the given annotated classes in a batch.  | 
                        
 | 
                            public void | 
                            addPackages(java.lang.String annotatedPackages)Add the given annotated packages in a batch.  | 
                        
 | 
                            public 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.  | 
                        
 | 
                            public ServiceRegistry | 
                            getServiceRegistry() | 
                        
<S> | 
                            public java.util.Collection<S> | 
                            loadJavaServices(java.lang.Class<S> serviceContract) | 
                        
 | 
                            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() | 
                        
 | 
                            public void | 
                            scanPackages(java.lang.String packagesToScan)Perform Spring-based scanning for entity classes, registering them as annotated classes with this Configuration. | 
                        
 | 
                            public void | 
                            sessionFactoryClosed(org.hibernate.SessionFactory factory) | 
                        
 | 
                            public void | 
                            sessionFactoryCreated(org.hibernate.SessionFactory factory) | 
                        
 | 
                            public void | 
                            setApplicationContext(org.springframework.context.ApplicationContext applicationContext) | 
                        
 | 
                            public void | 
                            setDataSourceConnectionSource(ConnectionSource<javax.sql.DataSource, DataSourceSettings> connectionSource)Set the target SQL javax.sql.DataSource  | 
                        
 | 
                            public void | 
                            setDataSourceName(java.lang.String name) | 
                        
 | 
                            public void | 
                            setEventListeners(java.util.Map<java.lang.String, java.lang.Object> listeners)Default listeners.  | 
                        
 | 
                            public void | 
                            setHibernateEventListeners(HibernateEventListeners listeners)User-specifiable extra listeners.  | 
                        
 | 
                            public void | 
                            setHibernateMappingContext(HibernateMappingContext hibernateMappingContext) | 
                        
 | 
                            public void | 
                            setMetadataContributor(org.hibernate.boot.spi.MetadataContributor metadataContributor) | 
                        
 | 
                            public void | 
                            setSessionFactoryBeanName(java.lang.String name) | 
                        
| Methods inherited from class | Name | 
|---|---|
interface org.springframework.context.annotation.Configuration | 
                            org.springframework.context.annotation.Configuration#annotationType(), org.springframework.context.annotation.Configuration#enforceUniqueMethods(), org.springframework.context.annotation.Configuration#equals(java.lang.Object), org.springframework.context.annotation.Configuration#hashCode(), org.springframework.context.annotation.Configuration#proxyBeanMethods(), org.springframework.context.annotation.Configuration#toString(), org.springframework.context.annotation.Configuration#value() | 
                        
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