Author: kmenard
Date: Sat Sep 13 10:39:19 2008
New Revision: 694991
URL: http://svn.apache.org/viewvc?rev=694991&view=rev
Log:
Fixed TAPESTRY-2572: Use HSQL instead of MySQL for Address demo.
Patch by Sven Homburg.
Modified:
tapestry/tapestry5/trunk/tapestry-tutorial1/pom.xml
tapestry/tapestry5/trunk/tapestry-tutorial1/src/main/resources/hibernate.cfg.xml
Modified: tapestry/tapestry5/trunk/tapestry-tutorial1/pom.xml
URL:
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-tutorial1/pom.xml?rev=694991&r1=694990&r2=694991&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-tutorial1/pom.xml (original)
+++ tapestry/tapestry5/trunk/tapestry-tutorial1/pom.xml Sat Sep 13 10:39:19 2008
@@ -30,9 +30,9 @@
</dependency>
<dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <version>5.1.5</version>
+ <groupId>hsqldb</groupId>
+ <artifactId>hsqldb</artifactId>
+ <version>1.8.0.7</version>
</dependency>
Modified:
tapestry/tapestry5/trunk/tapestry-tutorial1/src/main/resources/hibernate.cfg.xml
URL:
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-tutorial1/src/main/resources/hibernate.cfg.xml?rev=694991&r1=694990&r2=694991&view=diff
==============================================================================
---
tapestry/tapestry5/trunk/tapestry-tutorial1/src/main/resources/hibernate.cfg.xml
(original)
+++
tapestry/tapestry5/trunk/tapestry-tutorial1/src/main/resources/hibernate.cfg.xml
Sat Sep 13 10:39:19 2008
@@ -3,9 +3,9 @@
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
- <property
name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
- <property
name="hibernate.connection.url">jdbc:mysql://localhost:3306/t5_tutorial1</property>
- <property
name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
+ <property
name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</property>
+ <property
name="hibernate.connection.url">jdbc:hsqldb:./target/work/t5_tutorial1;shutdown=true</property>
+ <property
name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property>
<!--
@@ -14,8 +14,8 @@
grant all on t5_tutorial1.* to 't5tutorialuser'@'localhost'
identified by 'secret';
-->
- <property
name="hibernate.connection.username">t5tutorialuser</property>
- <property name="hibernate.connection.password">secret</property>
+ <property name="hibernate.connection.username">sa</property>
+ <property name="hibernate.connection.password"></property>
<property name="hbm2ddl.auto">update</property>
<property name="hibernate.show_sql">true</property>
<property name="hibernate.format_sql">true</property>