From 58ce7d6d794c69696d23d62616221a4708d13455 Mon Sep 17 00:00:00 2001 From: Julien Dubois Date: Fri, 1 Mar 2013 11:41:18 +0100 Subject: [PATCH] Switched database to MySQL --- pom.xml | 16 ++++++----- src/main/resources/spring/jdbc.properties | 33 ++++++++++++----------- 2 files changed, 26 insertions(+), 23 deletions(-) diff --git a/pom.xml b/pom.xml index 9bd081f59..abaa164fc 100644 --- a/pom.xml +++ b/pom.xml @@ -75,7 +75,7 @@ [2.2.1,3.1.0) 2.3 2.0 - 5.1.22 + 5.1.23 UTF-8 UTF-8 @@ -132,18 +132,19 @@ commons-dbcp commons-dbcp + - + org.hibernate @@ -830,17 +831,18 @@ - - + runtime + + javax.servlet.jsp.jstl jstl-api diff --git a/src/main/resources/spring/jdbc.properties b/src/main/resources/spring/jdbc.properties index 21d1560b4..806560204 100644 --- a/src/main/resources/spring/jdbc.properties +++ b/src/main/resources/spring/jdbc.properties @@ -7,35 +7,36 @@ #------------------------------------------------------------------------------- # HSQL Settings -jdbc.driverClassName=org.hsqldb.jdbcDriver -jdbc.url=jdbc:hsqldb:mem:petclinic -jdbc.username=sa -jdbc.password= +#jdbc.driverClassName=org.hsqldb.jdbcDriver +#jdbc.url=jdbc:hsqldb:mem:petclinic +#jdbc.username=sa +#jdbc.password= # Properties that control the population of schema and data for a new data source -jdbc.initLocation=classpath:db/hsqldb/initDB.sql -jdbc.dataLocation=classpath:db/hsqldb/populateDB.sql +#jdbc.initLocation=classpath:db/hsqldb/initDB.sql +#jdbc.dataLocation=classpath:db/hsqldb/populateDB.sql # Property that determines which database to use with an AbstractJpaVendorAdapter -jpa.database=HSQL +#jpa.database=HSQL -jpa.showSql=true +#jpa.showSql=true #------------------------------------------------------------------------------- # MySQL Settings -#jdbc.driverClassName=com.mysql.jdbc.Driver -#jdbc.url=jdbc:mysql://localhost:3306/petclinic -#jdbc.username=root -#jdbc.password= +jdbc.driverClassName=com.mysql.jdbc.Driver +jdbc.url=jdbc:mysql://localhost:3306/petclinic +jdbc.username=root +jdbc.password= # Properties that control the population of schema and data for a new data source -#jdbc.initLocation=classpath:db/mysql/initDB.txt -#jdbc.dataLocation=classpath:db/mysql/populateDB.txt +jdbc.initLocation=classpath:db/mysql/initDB.sql +jdbc.dataLocation=classpath:db/mysql/populateDB.sql # Property that determines which Hibernate dialect to use # (only applied with "applicationContext-hibernate.xml") -#hibernate.dialect=org.hibernate.dialect.MySQLDialect +hibernate.dialect=org.hibernate.dialect.MySQLDialect # Property that determines which database to use with an AbstractJpaVendorAdapter -#jpa.database=MYSQL +jpa.database=MYSQL +jpa.showSql=false