|
Generated by JDiff |
||||||||
PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES |
This file contains all the changes in documentation in the packageorg.springframework.orm.hibernate4
as colored differences. Deletions are shownlike this, and additions are shown like this.
If no deletions or additions are shown in an entry, the HTML tags will be what has changed. The new HTML tags are shown in the differences. If no documentation existed, and then some was added in a later version, this change is noted in the appropriate class pages of differences, but the change is not shown on this page. Only changes in existing text are shown here. Similarly, documentation which was inherited from another class or interface is not shown here.
Note that an HTML error in the new documentation may cause the display of other documentation changes to be presented incorrectly. For instance, failure to close a <code> tag will cause all subsequent paragraphs to be displayed differently.
org.springframework.beans.factory.FactoryBean that createsClass LocalSessionFactoryBean, void setAnnotatedClasses(Class[])a Hibernatea Hibernate org.hibernate.SessionFactory. This is the usual waytoto set up asharedshared Hibernate SessionFactory in a Spring application context;the SessionFactorycancan then be passed to Hibernate-basedDAOsdata accessviaobjects via dependency injection.NOTE: This variant of LocalSessionFactoryBean requires Hibernate 4.
00 or higher. It is similar in role to the same-named class in theorm.hibernate3
package. However, in practice, it is closer toAnnotationSessionFactoryBean
sincesince its core purpose is to bootstrap aSessionFactory
from annotation scanning.NOTE: To set up Hibernate 4 for Spring-driven JTA transactions, make sure to either specify the "jtaTransactionManager" bean property or to set the "hibernate.transaction.factory_class" property to org.hibernate.engine.transaction.internal.jta.CMTTransactionFactory. Otherwise, Hibernate's smart flushing mechanism won't work properly. @author Juergen Hoeller @since 3.1 @see #setDataSource @see #setPackagesToScan
Specify annotated entity classes to register with this Hibernate SessionFactory. @see org.hibernate.cfg.Configuration#addAnnotatedClass(StringClass)
A Spring-provided extension of the standard Hibernate Configuration class, adding SpringSessionContext as a default and providing convenient ways to specify a DataSource and an application class loader.Class LocalSessionFactoryBuilder, constructor LocalSessionFactoryBuilder(DataSource, ResourceLoader)This is designed for programmatic use, e.g. in {@code @Bean} factory methods. Consider using LocalSessionFactoryBean for XML bean definition files.
NOTE: To set up Hibernate 4 for Spring-driven JTA transactions, make sure to either use the .setJtaTransactionManager method or to set the "hibernate.transaction.factory_class" property to CMTTransactionFactory. Otherwise, Hibernate's smart flushing mechanism won't work properly. @author Juergen Hoeller @since 3.1 @see LocalSessionFactoryBean
Create a new LocalSessionFactoryBuilder for the given DataSource. @param dataSource the JDBC DataSource that the resulting Hibernate SessionFactory should be using (may benull
) @paramclassLoaderresourceLoader the ResourceLoader to load application classes from