@Override protected void setUpResources(DataSource dataSource) throws Exception { hibernate = HibernateHandlerFactory.create(dataSource); executionListener = new HibernateFlowExecutionListener(hibernate.getSessionFactory(), hibernate.getTransactionManager()); rowCount = 1; }
@Override protected FlowExecutionListener createFlowExecutionListener() throws Exception { sessionFactory = getSessionFactory(getDataSource()); HibernateTransactionManager tm = new HibernateTransactionManager(sessionFactory); return new HibernateFlowExecutionListener(sessionFactory, tm); }
protected void setUp() throws Exception { DataSource dataSource = getDataSource(); populateDataBase(dataSource); jdbcTemplate = new JdbcTemplate(dataSource); hibernate = HibernateHandlerFactory.create(dataSource); hibernateListener = new HibernateFlowExecutionListener(hibernate.getSessionFactory(), hibernate.getTransactionManager()); }