Search in sources :

Example 1 with AuditLogModelDaoMapper

use of org.killbill.billing.util.dao.AuditLogModelDaoMapper 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;
}
Also used : SessionModelDao(org.killbill.billing.util.security.shiro.dao.SessionModelDao) RecordIdIdMappingsMapper(org.killbill.billing.util.dao.RecordIdIdMappingsMapper) LowerToCamelBeanMapperFactory(org.killbill.commons.jdbi.mapper.LowerToCamelBeanMapperFactory) IDBI(org.skife.jdbi.v2.IDBI) DBI(org.skife.jdbi.v2.DBI) AuditLogModelDaoMapper(org.killbill.billing.util.dao.AuditLogModelDaoMapper)

Aggregations

AuditLogModelDaoMapper (org.killbill.billing.util.dao.AuditLogModelDaoMapper)1 RecordIdIdMappingsMapper (org.killbill.billing.util.dao.RecordIdIdMappingsMapper)1 SessionModelDao (org.killbill.billing.util.security.shiro.dao.SessionModelDao)1 LowerToCamelBeanMapperFactory (org.killbill.commons.jdbi.mapper.LowerToCamelBeanMapperFactory)1 DBI (org.skife.jdbi.v2.DBI)1 IDBI (org.skife.jdbi.v2.IDBI)1