Skip to content

Commit

Permalink
Update database.properties
Browse files Browse the repository at this point in the history
Changed to H2 configuration
  • Loading branch information
shopizer-ecommerce committed Mar 17, 2016
1 parent 7989382 commit 63ee08b
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions sm-shop/src/main/resources/database.properties
Original file line number Diff line number Diff line change
@@ -1,31 +1,32 @@
##
## configuration base de données
## configuration base de données
##


#MYSQL
db.jdbcUrl=jdbc:mysql://localhost:3306/SALESMANAGER?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8
db.user=root
db.password=root
hibernate.hbm2ddl.auto=update
db.driverClass=com.mysql.jdbc.Driver
hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
#db.jdbcUrl=jdbc:mysql://localhost:3306/SALESMANAGER?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8
#db.user=root
#db.password=root
#hibernate.hbm2ddl.auto=update
#db.driverClass=com.mysql.jdbc.Driver
#hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
#db.preferredTestQuery=SELECT 1
#db.schema=SALESMANAGER

#H2
db.jdbcUrl=jdbc\:h2\:file\:SALESMANAGER;AUTOCOMMIT=OFF;INIT\=CREATE SCHEMA IF NOT EXISTS SALESMANAGER
db.user=test
db.password=password
db.driverClass=org.h2.Driver
hibernate.dialect=org.hibernate.dialect.H2Dialect
db.preferredTestQuery=SELECT 1
db.schema=SALESMANAGER

#H2
#db.jdbcUrl=jdbc\:h2\:file\:SALESMANAGER;AUTOCOMMIT=OFF;INIT\=CREATE SCHEMA IF NOT EXISTS SALESMANAGER
#db.user=test
#db.password=password
#db.driverClass=org.h2.Driver
#hibernate.dialect=org.hibernate.dialect.H2Dialect
#db.preferredTestQuery=SELECT 1
#db.schema=SALESMANAGER
#hibernate.hbm2ddl.auto=update
hibernate.hbm2ddl.auto=update

##
## configuration pooling base de données
## configuration pooling base de données
##
db.initialPoolSize=10
db.minPoolSize=5
db.maxPoolSize=50
db.maxPoolSize=50

0 comments on commit 63ee08b

Please sign in to comment.