use of org.mifos.customers.persistence.CustomerDaoHibernate in project head by mifos.
the class CustomerCreationDaoHibernateIntegrationTest method setUp.
@Before
public void setUp() throws Exception {
// jdbc
// delete from customer_fee_schedule
// delete form customer_schedule
// delete from customer_account
// delete from account
// delete from customer_meeting
// delete from customer
weeklyMeeting = new MeetingBuilder().customerMeeting().weekly().every(1).startingToday().build();
IntegrationTestObjectMother.saveMeeting(weeklyMeeting);
customerDao = new CustomerDaoHibernate(genericDao);
}
use of org.mifos.customers.persistence.CustomerDaoHibernate in project head by mifos.
the class PluginManager method loadImportPlugins.
/**
* Returns list of import plugins. Note that {@link ServiceLoader} caches
* loads, so multiple invocations should not incur extra overhead.
*/
public List<TransactionImport> loadImportPlugins() {
List<TransactionImport> plugins = new ArrayList<TransactionImport>();
ClassLoader pluginClassLoader = initializePluginClassLoader();
ServiceLoader<TransactionImport> loader = ServiceLoader.load(TransactionImport.class, pluginClassLoader);
for (TransactionImport ti : loader) {
ti.setAccountService(new StandardAccountService(ApplicationContextProvider.getBean(LegacyAccountDao.class), ApplicationContextProvider.getBean(LegacyLoanDao.class), ApplicationContextProvider.getBean(LegacyAcceptedPaymentTypeDao.class), new PersonnelDaoHibernate(new GenericDaoHibernate()), new CustomerDaoHibernate(new GenericDaoHibernate()), ApplicationContextProvider.getBean(LoanBusinessService.class), new HibernateTransactionHelperForStaticHibernateUtil(), ApplicationContextProvider.getBean(LegacyMasterDao.class), ApplicationContextProvider.getBean(MonthClosingServiceFacade.class), ApplicationContextProvider.getBean(SavingsServiceFacade.class), ApplicationContextProvider.getBean(GroupLoanAccountServiceFacade.class)));
ti.setCustomerSearchService(new CustomerSearchServiceImpl(new CustomerDaoHibernate(new GenericDaoHibernate())));
plugins.add(ti);
}
return plugins;
}
Aggregations