use of org.killbill.commons.jdbi.mapper.LowerToCamelBeanMapperFactory in project killbill by killbill.
the class TestCatalogOverridePhaseDefinitionSqlDao method beforeClass.
@BeforeClass(groups = "slow")
public void beforeClass() throws Exception {
super.beforeClass();
((DBI) dbi).registerMapper(new LowerToCamelBeanMapperFactory(CatalogOverridePhaseDefinitionModelDao.class));
}
use of org.killbill.commons.jdbi.mapper.LowerToCamelBeanMapperFactory in project killbill by killbill.
the class TestCatalogOverridePlanDefinitionSqlDao method beforeClass.
@BeforeClass(groups = "slow")
public void beforeClass() throws Exception {
super.beforeClass();
((DBI) dbi).registerMapper(new LowerToCamelBeanMapperFactory(CatalogOverridePlanDefinitionModelDao.class));
}
use of org.killbill.commons.jdbi.mapper.LowerToCamelBeanMapperFactory in project killbill by killbill.
the class TestCatalogOverridePlanPhaseSqlDao method beforeClass.
@BeforeClass(groups = "slow")
public void beforeClass() throws Exception {
super.beforeClass();
((DBI) dbi).registerMapper(new LowerToCamelBeanMapperFactory(CatalogOverridePlanPhaseModelDao.class));
}
use of org.killbill.commons.jdbi.mapper.LowerToCamelBeanMapperFactory in project killbill by killbill.
the class KillbillServerModule method configureDao.
@Override
protected void configureDao() {
super.configureDao();
final Multibinder<ResultSetMapperFactory> resultSetMapperFactorySetBinder = Multibinder.newSetBinder(binder(), ResultSetMapperFactory.class);
resultSetMapperFactorySetBinder.addBinding().toInstance(new LowerToCamelBeanMapperFactory(SessionModelDao.class));
final Multibinder<ResultSetMapper> resultSetMapperSetBinder = Multibinder.newSetBinder(binder(), ResultSetMapper.class);
resultSetMapperSetBinder.addBinding().to(AuditLogModelDaoMapper.class).asEagerSingleton();
resultSetMapperSetBinder.addBinding().to(RecordIdIdMappingsMapper.class).asEagerSingleton();
}
use of org.killbill.commons.jdbi.mapper.LowerToCamelBeanMapperFactory in project killbill by killbill.
the class DBTestingHelper method getDBI.
@Override
public IDBI getDBI() {
final DBI dbi = (DBI) super.getDBI();
// Register KB specific mappers
if (initialized.compareAndSet(false, true)) {
dbi.registerMapper(new AuditLogModelDaoMapper());
dbi.registerMapper(new RecordIdIdMappingsMapper());
dbi.registerMapper(new LowerToCamelBeanMapperFactory(SessionModelDao.class));
}
return dbi;
}
Aggregations