new ClassPathResource("Account.hbm.xml", HibernateAccountManager.class),
new ClassPathResource("Beneficiary.hbm.xml", HibernateAccountManager.class) };
factoryBean.setMappingLocations(mappingLocations);
factoryBean.setHibernateProperties(createHibernateProperties());
// initialize according to the Spring InitializingBean contract
factoryBean.afterPropertiesSet();
// get the created session factory
return (SessionFactory) factoryBean.getObject();
}
private DataSource createTestDataSource() {