org.smart.data.repository.configuration.H2EmbeddedDatasourceConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of smart-data-repository Show documentation
Show all versions of smart-data-repository Show documentation
ORM that simplifies database interactions.
package org.smart.data.repository.configuration;
import org.h2.jdbcx.JdbcDataSource;
import javax.sql.DataSource;
/**
* @author Ranzy Blessings (2017/05/30)
*/
public class H2EmbeddedDatasourceConfig {
public static DataSource h2Datasource() {
JdbcDataSource jdbcDataSource = new JdbcDataSource();
jdbcDataSource.setURL("jdbc:h2:~/test");
jdbcDataSource.setUser("sa");
jdbcDataSource.setPassword("sa");
return jdbcDataSource;
}
}