use of org.springframework.orm.hibernate3.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.hibernate3.HibernateTransactionManager in project rhino by PLOS.
the class RhinoConfiguration method transactionManager.
@Bean
// and a JmsTransactionManager.
@Primary
public HibernateTransactionManager transactionManager(SessionFactory sessionFactory) {
HibernateTransactionManager manager = new HibernateTransactionManager();
manager.setSessionFactory(sessionFactory);
return manager;
}
Aggregations