use of org.springframework.orm.hibernate5.HibernateTransactionManager in project Synergy by Meggot.
the class SQLDatabaseConfiguration method hibernateTransactionManager.
@Bean(name = "transactionManager")
public PlatformTransactionManager hibernateTransactionManager() {
HibernateTransactionManager transactionManager = new HibernateTransactionManager();
transactionManager.setSessionFactory(sessionFactory());
return transactionManager;
}
use of org.springframework.orm.hibernate5.HibernateTransactionManager in project tutorials by eugenp.
the class PersistenceConfig method hibernateTransactionManager.
@Bean
public PlatformTransactionManager hibernateTransactionManager() {
final HibernateTransactionManager transactionManager = new HibernateTransactionManager();
transactionManager.setSessionFactory(sessionFactory().getObject());
return transactionManager;
}
use of org.springframework.orm.hibernate5.HibernateTransactionManager in project tutorials by eugenp.
the class PersistenceConfig method transactionManager.
@Bean
@Autowired
public HibernateTransactionManager transactionManager(final SessionFactory sessionFactory) {
final HibernateTransactionManager txManager = new HibernateTransactionManager();
txManager.setSessionFactory(sessionFactory);
return txManager;
}
use of org.springframework.orm.hibernate5.HibernateTransactionManager in project tutorials by eugenp.
the class PersistenceConfig method transactionManager.
@Bean
public HibernateTransactionManager transactionManager() {
final HibernateTransactionManager txManager = new HibernateTransactionManager();
txManager.setSessionFactory(sessionFactory().getObject());
return txManager;
}
use of org.springframework.orm.hibernate5.HibernateTransactionManager in project tutorials by eugenp.
the class Cause1PersistenceConfig method transactionManager.
@Bean
public HibernateTransactionManager transactionManager() {
final HibernateTransactionManager txManager = new HibernateTransactionManager();
txManager.setSessionFactory(sessionFactory().getObject());
return txManager;
}
Aggregations