use of org.springframework.orm.hibernate4.HibernateTransactionManager in project tutorials by eugenp.
the class Cause2PersistenceConfig method transactionManager.
@Bean
public HibernateTransactionManager transactionManager() {
final HibernateTransactionManager txManager = new HibernateTransactionManager();
txManager.setSessionFactory(sessionFactory().getObject());
return txManager;
}
use of org.springframework.orm.hibernate4.HibernateTransactionManager in project tutorials by eugenp.
the class Cause3PersistenceConfig method transactionManager.
@Bean
public HibernateTransactionManager transactionManager() {
final HibernateTransactionManager txManager = new HibernateTransactionManager();
txManager.setSessionFactory(sessionFactory().getObject());
return txManager;
}
use of org.springframework.orm.hibernate4.HibernateTransactionManager in project tutorials by eugenp.
the class Cause1NonTransientConfig method transactionManager.
@Bean
public HibernateTransactionManager transactionManager() {
final HibernateTransactionManager txManager = new HibernateTransactionManager();
txManager.setSessionFactory(sessionFactory().getObject());
return txManager;
}
use of org.springframework.orm.hibernate4.HibernateTransactionManager in project tutorials by eugenp.
the class Cause4NonTransientConfig method transactionManager.
@Bean
public HibernateTransactionManager transactionManager() {
final HibernateTransactionManager txManager = new HibernateTransactionManager();
txManager.setSessionFactory(sessionFactory().getObject());
return txManager;
}
use of org.springframework.orm.hibernate4.HibernateTransactionManager in project tutorials by eugenp.
the class Cause5NonTransientConfig method transactionManager.
@Bean
public HibernateTransactionManager transactionManager() {
final HibernateTransactionManager txManager = new HibernateTransactionManager();
txManager.setSessionFactory(sessionFactory().getObject());
return txManager;
}
Aggregations