Search in sources :

Example 1 with H2DatabaseType

use of com.j256.ormlite.db.H2DatabaseType in project nutch by apache.

the class SpringConfiguration method getConnectionSource.

@Bean
public JdbcConnectionSource getConnectionSource() throws SQLException {
    JdbcConnectionSource source = new JdbcConnectionSource("jdbc:h2:~/.nutch/config", new H2DatabaseType());
    source.initialize();
    return source;
}
Also used : H2DatabaseType(com.j256.ormlite.db.H2DatabaseType) JdbcConnectionSource(com.j256.ormlite.jdbc.JdbcConnectionSource) Bean(org.springframework.context.annotation.Bean)

Aggregations

H2DatabaseType (com.j256.ormlite.db.H2DatabaseType)1 JdbcConnectionSource (com.j256.ormlite.jdbc.JdbcConnectionSource)1 Bean (org.springframework.context.annotation.Bean)1