Search in sources :

Example 1 with DbInitializer

use of org.openforis.collect.persistence.DbInitializer in project collect by openforis.

the class ApplicationInitializerServletContextListener method initDB.

private void initDB() {
    LOG.info("========Open Foris Collect - Starting DB initialization ========");
    DataSourceConnectionProvider connectionProvider = new DataSourceConnectionProvider(DbUtils.getDataSource());
    new DbInitializer(connectionProvider).start();
    LOG.info("========Open Foris Collect - DB Initialized ====================");
}
Also used : DbInitializer(org.openforis.collect.persistence.DbInitializer) DataSourceConnectionProvider(org.jooq.impl.DataSourceConnectionProvider)

Aggregations

DataSourceConnectionProvider (org.jooq.impl.DataSourceConnectionProvider)1 DbInitializer (org.openforis.collect.persistence.DbInitializer)1