Make the default config still use SQLite for the time being, now that MySQL is proven to work

This commit is contained in:
skogaby 2019-09-26 16:48:19 -05:00
parent 18776684cc
commit 64e526410d
2 changed files with 20 additions and 6 deletions

View File

@ -84,7 +84,7 @@ public class HibernateConfiguration {
source.setDriverClassName(this.driverClassName);
source.setUsername(this.username);
source.setPassword(this.password);
source.setUrl(this.connectionUrl);
source.setUrl(this.connectionUrl.replace('\\', '/'));
return source;
}

View File

@ -1,9 +1,23 @@
jdbc.driverClassName = com.mysql.jdbc.Driver
# Use this config for MySQL
# jdbc.driverClassName = com.mysql.jdbc.Driver
# jdbc.username =
# jdbc.password =
# hibernate.hbm2ddl.auto = update
# # hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
# hibernate.show_sql = false
# hibernate.connection.pool_size = 10
# hibernate.connection.url = jdbc:mysql://localhost:3306/butterfly?createDatabaseIfNotExist=true
# Use this config for SQLite
jdbc.driverClassName = org.sqlite.JDBC
jdbc.username =
jdbc.password =
jdbc.password =
hibernate.hbm2ddl.auto = update
hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
hibernate.dialect = com.buttongames.butterflydao.hibernate.SQLiteDialect
hibernate.show_sql = false
hibernate.connection.pool_size = 10
hibernate.connection.url = jdbc:mysql://localhost:3306/butterfly?createDatabaseIfNotExist=true
hibernate.connection.pool_size = 1
hibernate.connection.url = jdbc:sqlite:C:\\Users\\YourUser\\Desktop\\butterfly.sqlite