org.springframework.orm.hibernate3.LocalSessionFactoryBean Java Examples

The following examples show how to use org.springframework.orm.hibernate3.LocalSessionFactoryBean. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SpringConfig.java    From quickperf with Apache License 2.0 4 votes vote down vote up
@Bean
public PlatformTransactionManager hibernateTransactionManager(LocalSessionFactoryBean sessionFactory) {
    HibernateTransactionManager transactionManager = new HibernateTransactionManager();
    transactionManager.setSessionFactory(sessionFactory.getObject());
    return transactionManager;
}
 
Example #2
Source File: AbstractLobType.java    From spring4-understanding with Apache License 2.0 2 votes vote down vote up
/**
 * Constructor used by Hibernate: fetches config-time LobHandler and
 * config-time JTA TransactionManager from LocalSessionFactoryBean.
 * @see org.springframework.orm.hibernate3.LocalSessionFactoryBean#getConfigTimeLobHandler
 * @see org.springframework.orm.hibernate3.LocalSessionFactoryBean#getConfigTimeTransactionManager
 */
protected AbstractLobType() {
	this(LocalSessionFactoryBean.getConfigTimeLobHandler(),
		LocalSessionFactoryBean.getConfigTimeTransactionManager());
}