mirror of
https://github.com/skogaby/butterfly.git
synced 2026-04-25 16:06:52 -05:00
Make the default config still use SQLite for the time being, now that MySQL is proven to work
This commit is contained in:
parent
18776684cc
commit
64e526410d
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user