use of org.springframework.orm.hibernate4.HibernateTransactionManager in project rhino by PLOS.
the class TestConfiguration method transactionManager.
@Bean
public HibernateTransactionManager transactionManager(SessionFactory sessionFactory) {
HibernateTransactionManager manager = new HibernateTransactionManager();
manager.setSessionFactory(sessionFactory);
return manager;
}
use of org.springframework.orm.hibernate4.HibernateTransactionManager in project RecordManager2 by moravianlibrary.
the class AppConfig method transactionManager.
@Bean
public PlatformTransactionManager transactionManager() {
HibernateTransactionManager manager = new HibernateTransactionManager();
manager.setSessionFactory(sessionFactory);
return manager;
}
use of org.springframework.orm.hibernate4.HibernateTransactionManager in project yqq by yeycfri.
the class HibernateConfig method transactionManager.
@Bean
@Autowired
public HibernateTransactionManager transactionManager(SessionFactory sessionFactory) {
HibernateTransactionManager txManager = new HibernateTransactionManager();
txManager.setSessionFactory(sessionFactory);
return txManager;
}
use of org.springframework.orm.hibernate4.HibernateTransactionManager in project tutorials by eugenp.
the class HibernateConf method hibernateTransactionManager.
@Bean
public PlatformTransactionManager hibernateTransactionManager() {
final HibernateTransactionManager transactionManager = new HibernateTransactionManager();
transactionManager.setSessionFactory(sessionFactory().getObject());
return transactionManager;
}
use of org.springframework.orm.hibernate4.HibernateTransactionManager in project tutorials by eugenp.
the class PersistenceConfigHibernate3 method transactionManager.
@Bean
@Autowired
public HibernateTransactionManager transactionManager(final SessionFactory sessionFactory) {
final HibernateTransactionManager txManager = new HibernateTransactionManager();
txManager.setSessionFactory(sessionFactory);
return txManager;
}
Aggregations